How to debug Ganga with Wing IDE graphical debugger
Note: Wing IDE version 2.0.3 does not work with python2.2. You may use python 2.3 from ganga/external/Python repository which automatically installed with ganga.
- Read about installation and licensing of Wing IDE here: http://cern.ch/product-support/sdt/wingide.html
- Run
wing2.0
and open the bin/ganga executable file in the source editor window and press F5 (Menu: Project|Debug)
- Specify the Run Arguments in the Debug dialog box:
-o'[Configuration]TextShell=Console' --no-rexec
The options above diable IPython (which otherwise confuses the debugger) and ask Ganga not to do internal exec of itself. This means than if you have some special application environment which is set automatically at bootstrap time, it may not be complete (this affects mainly the LD_LIBRARY_PATH) . If this is a case, make sure that you setup correct application environment before you run the debugger.
N.B. The above procedure will also allow reasonable debugging using
eclipse
with the
pydev
plugin.
-- Main.wreece - 18 Feb 2007
--
JakubMoscicki - 04 Sep 2006