PaRaD1SE

Linux Software Debug

Published: 2022/3/27 Views: 6477

Categories: 

Development

Simple Debug process when using Linux software

Overview

After updating the Linux system, it is very likely that some software will suddenly become unavailable. This is normal. Linux is an open source system, and much software are also open source. Therefore, when the system make a breaking change, the patch package cannot be released in time. However, the reason that cause the software to suddenly fail are often just some small errors, and some simple remedies can usually solve the problem.

Get Error Message

Here are two ways to get error information:

Via Log

Generally speaking, the software will have its own storage address for the operation log, which can be used to obtain error information. But the log is not for ordinary users, and sometimes it is very troublesome to find.

Run Via Terminal

Linux will use .desktop``` files to wrap a program into a program that can be run when an icon is clicked. The .desktop``` file is generally stored in the /usr/share/applications directory. Locate the program in question and open it with an editor. Here's an example:


Exec is the command to run the program. We can run this command in the terminal and click the icon to run it. We use the terminal to run the program, and we can see that the program returns some output information, and if an error is encountered, the error message is also output to the terminal.

"CV" engineer's experience

Then it's time to use your CV(Copy and Paste) engineer skills, copy the error message to a search engine and find some luck 2333.

Tags:

Linux
Desktop Entry

Previous

Next