Stop and go - two Python(Win) questions

Simon Brunning SBrunning at trisystems.co.uk
Wed Jan 16 11:07:57 EST 2002


> From:	m.bless at gmx.de [SMTP:m.bless at gmx.de]
> Yes, I'm looking for a PERSISTENT breakpoint. The F9 method is great
> but in more complex projects I'd like to have persistent breakpoints
> too.
> 
> What I'm missing is the "set step on" directive of FoxPro which
> suspends execution. You can then manually inspect/modify whatever you
> want and later on "resume" execution.
> 
> So, what I'm looking for is a function like
> 
>   win32ui.PythonWinPleaseHearMyPlea(
>       "suspend here as if F9 was pressed")
> 
> To resume later on I could press F5 as usual.
 
OK, try this:

import pywin.debugger
pywin.debugger.brk()

Cheers,
Simon Brunning
TriSystems Ltd.
sbrunning at trisystems.co.uk




-----------------------------------------------------------------------
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.




More information about the Python-list mailing list