gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leo Simons <m...@leosimons.com>
Subject Re: [howto] Debugging gump3
Date Thu, 07 Jul 2005 09:41:55 GMT
Leo Simons wrote:
> So, ehm, it is possible to run gump through pdb or another debugger
> (like wing), but I've found none of those are really of sufficient
> quality to be very productive. ye olde "print" statement works as well.

So, ehm, *cough*, I actually found myself explaining to adam the other
day how useful the Wing IDE debugger can be. I just committed some stuff
that hopefully makes it real easy to use either wing or PDB for
debugging. Let me know if it doesn't work.

Justin, you might want to try this out. You can get a free license to
Wing IDE for working on open source software (see
http://wingware.com/store/prices#discounts).

cheers,

Leo

Using a Real Debugger(tm) with Gump3
------------------------------------
Running `./gump help` shows two debug-related command line options:

    debug           -- run pygump in debug mode, attaching pdb
    debug-with-wing -- run pygump in debug mode, attaching the Wing IDE

Which have docs:

[lsimons@giraffe]$ ./gump help debug


      Run pygump in debug mode.

      Usage:
        ./gump debug [gump.py-args ...]

   This is not the same as executing the 'run' command with a '--debug'
   parameter. Using this command will actually start the command line
   debugger pdb to run gump in, whereas the '--debug' option customizes
   the log verbosity gump will use.

   This command otherwise accepts the same arguments as the 'run'
   command.

[lsimons@giraffe]$ ./gump help debug-with-wing

                              Gump3

      Run pygump in debug mode.

      Usage:
        ./gump debug [gump.py-args ...]

  This is not the same as executing the 'run' command with a '--debug'
  parameter. Using this command will actually start the debug connector
  for the Wing IDE and attach it to the gump process, whereas the
  '--debug' option customizes the log verbosity gump will use.

  This command otherwise accepts the same arguments as the 'run'
  command.

Usage is something like this:

  ./gump debug -w \
    /home/lsimons/svn/gump/branches/Gump3/fixture/metadata/workspace.xml

or for wing ide:

  export WINGHOME=path/to/wing/2
  ./gump debug-with-wing -w \
    /home/lsimons/svn/gump/branches/Gump3/fixture/metadata/workspace.xml

If you've not worked with debuggers before, you should probably take
some time to review the relevant documentation for your choice of

  - PDB: http://www.ferg.org/papers/debugging_in_python.html
  - Wing IDE: http://wingware.com/doc/debug/index

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Mime
View raw message