needs JavaScript on to function properly
manjaro logo

Debugging your system by reading logs or shell output

Debugging software

We going to use Pamac as an example, you need to find out the package name your application has, open Pamac and type your app name, were it says (/usr/bin/appname) is usually your executable.

Screenshot from 2022-09-17 14-30-44

Open a terminal and type your application name. Now on that terminal you can see if any errors output, not all applications output to the terminal, common errors that crash an application output (core dump, crash or assertion).

Screenshot from 2022-09-17 14-34-48

Using journalctl

Journalctl is part of systemd and logs any errors in your operating system, on journalctl the most important log to search is the error log, have a look at the bropages for more examples.

journalctl -p err

Using keywords to target a specific name search.

journalctl -p err | grep keyword

Screenshot from 2022-09-17 14-41-14

Checking Logs

Head to the directory (/var/log), not all application create logs in here but the ones that do you can open any file ending in (.log) and check their contents in plain text.

ls /var/log

Screenshot from 2022-09-17 14-51-04

If you on Xorg

Xorg is the default for any edition except for Gnome, then you can check (/home/.local/share/xorg/Xorg.0.log.) as Xorg logs errors that happens with any graphical application that runs.

Using Manjaro Log Helper can speed up this process by collecting all the system logs to one handy log and has some options to choose from.

pamac install manjaro-log-helper

Screenshot from 2022-09-17 16-02-58