Note

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "GNOME/Debugging"

From Funtoo
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
This page is intended to include 'How-to' style debugging/troubleshooting information for GNOME.
This page is intended to include 'How-to' style debugging/troubleshooting information for GNOME.


=== Enable gnome-session debugging ==
=== Enable gnome-session debugging ===


The recommended first step for trying to debug issues in GNOME related to various GNOME components is to enable the {{c|debug}} flag in {{c|/usr/bin/gnome-session}}. To do this, edit {{c|/usr/bin/gnome-session}} as root and add the the following option to the end of the last line: {{c|--debug}}:
The recommended first step for trying to debug issues in GNOME related to various GNOME components is to enable the {{c|debug}} flag in {{c|/usr/bin/gnome-session}}. To do this, edit {{c|/usr/bin/gnome-session}} as root and add the the following option to the end of the last line: {{c|--debug}}:


{{code|body=
{{file|name=/usr/bin/gnome-session|body=
exec /usr/libexec/gnome-session-binary "$@" --debug
exec /usr/libexec/gnome-session-binary "$@" --debug
}}
}}


Then, logging into GNOME will result to debug log messages sent to {{c|/var/log}}.
Then, logging into GNOME will result to debug log messages sent to {{c|/var/log}}.
=== Enable Debugging in GDM ===
Edit {{c|/etc/gdm/custom.conf}} and add:
{{file|name=/etc/gdm/custom.conf|body=
[debug]
Enable=True
}}
Then restart gdm via {{c|/etc/init.d/gdm restart}}, which will result in additional log messages being added to {{c|/var/log}} as well as being added to {{f|/var/log/gdm}} logs.

Latest revision as of 20:49, August 31, 2020

This page is intended to include 'How-to' style debugging/troubleshooting information for GNOME.

Enable gnome-session debugging

The recommended first step for trying to debug issues in GNOME related to various GNOME components is to enable the debug flag in /usr/bin/gnome-session. To do this, edit /usr/bin/gnome-session as root and add the the following option to the end of the last line: --debug:

   /usr/bin/gnome-session
exec /usr/libexec/gnome-session-binary "$@" --debug

Then, logging into GNOME will result to debug log messages sent to /var/log.

Enable Debugging in GDM

Edit /etc/gdm/custom.conf and add:

   /etc/gdm/custom.conf
[debug]

Enable=True

Then restart gdm via /etc/init.d/gdm restart, which will result in additional log messages being added to /var/log as well as being added to /var/log/gdm logs.