Archaeopteryx Software, Inc.
Take Flight!Search

Wing IDE
About Us
Open Source

 Advanced Search

AW: [wingide-users] Problems with wingdbstub.SuspendDebug

Wing IDE Support support at
Thu, 3 Apr 2003 22:13:57 -0500 (EST)

This is odd since by the time Wing says "Debugger: Program running (N
modules loaded)" it has already transferred the largest bulk of info that
gets sent at debug startup, so I'm not sure what else it's doing.  Also,
even on a pretty slow machine 5 minutes is a hugely more than I would
expect this to take.

Try running with kSilent=3D0 in and possibly also with the
--verbose switch on the command line when you start Wing.  The former will
output verbose debugger-side info when you 'sh' and the
latter will show some IDE-side messages.  All have time stamps so we
should be able to see where it's getting stuck, at least as far as the
network messages go.


- Stephan

On Thu, 3 Apr 2003 wrote:

> Hi Stephan,
> it works. But unfortunately it did not solve my startup performance probl=
> I did implement your proposal as follows:
> def cmsquery(args =3D None):
>     if not args:
>         args =3D sys.argv
>     if WINGDEBUG:
>         print "%s loading Wing Debugger ..." % now_time()
>         import wingdbstub
>         print "%s Wing Debugger loaded, parsing command line options ..."=
> now_time()
>     else:
>         print "%s parsing command line options ..." % now_time()
>     options =3D Options() #... breakpoint here ...
> if __name__ =3D=3D '__main__':
>     cmsquery()
> when starting now my script I get the display of "Debugger: Program runni=
> (694 modules loaded)" very quickly
> (approx. 5 seconds)
> but it looks now like the "import wingdbstub" takes > 5 minutes (before i=
> was "import Zope" that took that long).
> the output of my script looks now like
> freyp@mycomputer:~/EPcvs/HRS/Prod/HaufeCMSScripts> sh
> 22:52:04 QueryTest started
> 22:52:04 starting up Zope environment ...
> 22:52:08 loading HaufeCMS ...
> 22:52:09 loading Wing Debugger ...
> 22:57:35 Wing Debugger loaded, parsing command line options ...
> Is there anything else I could do to speed this up?
> Peter
> -----Urspr=FCngliche Nachricht-----
> Von: Wing IDE Support []=20
> Gesendet: Donnerstag, 3. April 2003 22:19
> An:
> Cc:
> Betreff: Re: [wingide-users] Problems with wingdbstub.SuspendDebug
> Hi,
> The API will only work if you're launching the debug process from outside=
> Wing.  If you debug from within Wing, the debugger is already going by th=
> time you reach the import of wingdbstub, so the module does nothing and
> doesn't set up the debugger API.  When you ran from the command shell it
> also didn't work because there's a bug in SuspendDebug that needs=20
> fixing (oops, thanks for pointing it out!).
> However, you probably don't need to use the API anyway.  At this point th=
> is really only there for very unusual debugging scenarios.
> Try removing your calls to the API and placing the import of wingdbstub
> where you currently have the ResumeDebug call.  This will delay starting
> debug until that line is reached.
> If you want to launch the process from the IDE, use the Execute items in =
> Run menu instead.  This runs things outside of the debugger and lets
> wingdbstub do its work when it is imported.
> If you do need .wingdebugpw, it's in ~/.wingide on Linux/Unix, and inside
> profiles/[username] in your Wing installation on Win32.  However, if both=
> processes run as the same user then the debugger looks up the file=20
> automatically.
> Hope that helps... if not, please let us know.
> Thanks,
> Stephan Deibel
> --
> Wing IDE for Python
> Archaeopteryx Software, Inc
> Take Flight!

Run by Mailman v 2.0.8

Copyright (c) 2000-2002, Archaeopteryx Software, Inc.
Legal Statements