Skip to content
Volker Krause edited this page Dec 27, 2011 · 4 revisions

Using GammaRay

Launching a new application

On the command line

Launching an application with GammaRay on the command line is similar to valgrind: "gammaray ".

This will launch the application with GammaRay attached to it right from the start. The GammaRay arguments allows you to select a different injection method. Check this list for which one is best for your use case (the default is usually ok on most platforms).

With a graphical user interface

There is currently no GUI for this (unlike for attaching).

Attaching to a running application

On the command line

Attaching to a running application on the command line is similar to gdb: "gammaray --pid ".

This will attach GammaRay to the application running with process id "". Keep in mind that this process has to be a Qt application with matching build settings and Qt version for GammaRay to work. You can also choose different injection methods here, but currently there exists only one that can do runtime attaching on each platform, so this is mainly interesting for GammaRay developers.

With a graphical user interface

Launch GammaRay without command line arguments (or use the menu shortcut if you have one) to bring up the GammaRay UI. It will show you a list of processes GammaRay can attach to, ie. those with the same build settings and Qt version as your GammaRay instance.

Clone this wiki locally