-
Notifications
You must be signed in to change notification settings - Fork 284
Usage
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).
There is currently no GUI for this (unlike for attaching).
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.
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.