-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to Debug Nemo #2309
Comments
@mtwebster I think |
Hi sorry, I meant to respond sooner. The way you're building is fine. One thing I'll do to save time after the initial build and install using dpkg-buildpackage, is instead run: I've never tried to develop in a full ide, so I'm not even really sure how breakpoints work there. The simplest method is to insert a You don't need to restart the session to restart nemo, just either do: If you want to debug the desktop icons, that is run with I use print statements mostly, or gdb if I need to do something more complicated (there's plenty of documentation out there) - it depends on what you're attempting to fix or work on. Valgrind is a good tool for looking for memory leaks - check out https://wiki.gnome.org/Valgrind. If you're getting glib/gtk/gobject warnings you can run This library - https://developer.gnome.org/glib/stable is what pretty much everything is based on in nemo (along with gtk3) - I usually install the 'devhelp' program, along with -doc packages for these, which I find faster than browsing the web docs. |
@blueray453 thank you for asking. I have been wondering the in's and out's as well for this. @mtwebster thank you for guidance and pointing in the correct direction. |
@icarter09 life is hard so have to ask. |
I am using
Linux Mint 19.3 Tricia
.I am tinkering with the nemo source code. I need a little debugging help. I checked https://forums.linuxmint.com/viewtopic.php?t=235125
https://stackoverflow.com/questions/31282505/how-to-debug-nemo-linux-mint-file-manager
The way I am changing the code and trying to debug is -
turned on 'source code repositories'.
Now I am editing the code. I am using
printf( "key_1 %s \n", key_1);
to observe different variables.ctrl+alt+backspace
to restart XorgThen I am using
Then looking for the
printf
output.I am sure there is a more elegant solution. Is there any way I can debug the code without
printf
,dpkg-buildpackage
,ctrl+alt+backspace
?The text was updated successfully, but these errors were encountered: