Use GNOME Looking Glass for debugging

My book Create Simple GUI Applications with Python & Qt5 has been updated! New chapters on the Model View architecture and custom widgets.

Looking Glass is GNOME Shell's integrated inspector tool and JavaScript console useful for debugging.

method/1497/shortcuts-looking-glass.png

Open the run prompt by pressing Alt+F2

Enter lg to start Looking Glass

Commands can be entered directly at the prompt e.g. global.get_window_actors()

step/7348/Screenshot at 2012-05-03 20:15:22.png

Exit at any time by pressing Esc

This method is based, with permission, on an original protocol available here.