Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug on GNOME Shell 3.6, 3.8 or newer

I developed my own gnome-shell extension that worked on GNOME Shell 3.4 and GNOME Shell 3.6. It's not working on GNOME Shell 3.8 and I can't find out why because I don't know where to access to any logs.

On GNOME Shell 3.4, using Looking Glass, there was a 'Error' tab that was removed on the 3.6 and 3.8 version, and I can't see any errors. On the extensions tab, clicking on 'show the errors' says 'no errors'.

Launching the gnome-shell --replace for terminal doesn't show any errors either. But my extension is not displayed (the code is the same and works on GNOME 3.4 and 3.6).

How can I debug this in order to find what's wrong with my code?

Thanks!

The extension: https://github.com/Softcatala/TraductorGnomeShell

like image 766
PauGNU Avatar asked Jan 25 '26 22:01

PauGNU


2 Answers

All output is redirected to stout/stderr this is captured in

.cache/gdm/session.log or .xsession-errors

like image 79
Guido Günther Avatar answered Jan 27 '26 10:01

Guido Günther


Since Gnome 3.6+ the error message tab was removed from Looking Glass. On a Gnome 3.6+ system open a console and issue the command:

tail -f .xsession-errors

In your extension use the new logging syntax:

log('my message');

In your console you will then see:

JS LOG: my message
like image 41
mbokil Avatar answered Jan 27 '26 12:01

mbokil



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!