2

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

PauGNU
  • 783
  • 3
  • 12
  • 32

3 Answers3

6

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

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

  • Thanks Guido. May I ask something else: how do I add my own logs to this file from my code? (something like global.log(xx)?, but this doesn't seem to work) – PauGNU Mar 29 '13 at 16:25
2

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
mbokil
  • 3,202
  • 30
  • 22
1

If you are using Fedora 19 log function mentioned in @mbokil answer writes to /var/log/messages

tail -f messages | grep 'localhost gnome-session'

will be your friend.