Thread: Re: [Boa Constr] Boa Debugger
Status: Beta
Brought to you by:
riaan
From: Kevin L. <kl...@wa...> - 2003-06-16 16:16:01
|
Alastair, You can also try single stepping into your program. It is possible that your program is exiting with an error early on. Have you tried running your program from the command line? What OS, and version of Boa Constructor are you using? Kevin > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Place some print's to see if the code actually goes through those lines. If you could reduce the code to a simple example, you could post it. > > Regards, > Javier > > > Alastair Nicol wrote: >> Hiya, >> I'm trying to debug a boa application and i'm having problems getting >> the debugger in boa to work. >> >> i've set break points in my code (red blobs in the margins) >> >> i fire up the debugger, press debug continue ( the first icon on the left of the debugger frame), my app starts up and runs, but does not halt at my breakpoints >> >> Has anyone got an advice? >> >> Cheers, Alastai > > - -- > Q: How many IBM CPU's does it take to execute a job? > A: Four; three to hold it down, and one to rip its head off. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.2 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQE+7egH8XQC840MeeoRAp+RAJ9L9mPlWCj5XH7R0PTVgwRkCF94+QCfYVci +vT4kJycXcLJdc29RCm21Do= > =bVFB > -----END PGP SIGNATURE----- > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: eBay > Great deals on office technology -- on eBay now! Click here: > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > https://lists.sourceforge.net/lists/listinfo/boa-constructor-users > > |
From: Alastair N. <cal...@bl...> - 2003-06-16 16:58:22
|
Single stepping works ok, is there anyway to ignore all python modules which are not in my program directory? win2k sp3 Python 2.2.2 wxpython 2.4.0.7 boa 0.2.3 win32all-150 app works fine from the command line. (well except for the bug i'm trying to pin down in my code) There are mixed comments on the boa site about the debugger. is it stable? does it work for large (>20 modules 1000+lines per module) apps. All my boa issues have been down to me being dumb so far, i'm kinda assuming its my fault. Just wondering if i've missed something very obvious. Al Kevin Light wrote: >Alastair, > >You can also try single stepping into your program. It is possible that >your program is exiting with an error early on. > >Have you tried running your program from the command line? > >What OS, and version of Boa Constructor are you using? > >Kevin > > > >>-----BEGIN PGP SIGNED MESSAGE----- >>Hash: SHA1 >> >> Place some print's to see if the code actually goes through those >> >> >lines. If you could reduce the code to a simple example, you could >post it. > > >>Regards, >> Javier >> >> >>Alastair Nicol wrote: >> >> >>>Hiya, >>> I'm trying to debug a boa application and i'm having problems getting >>>the debugger in boa to work. >>> >>>i've set break points in my code (red blobs in the margins) >>> >>>i fire up the debugger, press debug continue ( the first icon on the >>> >>> >left of the debugger frame), my app starts up and runs, but does not >halt at my breakpoints > > >>>Has anyone got an advice? >>> >>>Cheers, Alastai >>> >>> >>- -- >>Q: How many IBM CPU's does it take to execute a job? >>A: Four; three to hold it down, and one to rip its head off. >>-----BEGIN PGP SIGNATURE----- >>Version: GnuPG v1.2.2 (MingW32) >>Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org >> >>iD8DBQE+7egH8XQC840MeeoRAp+RAJ9L9mPlWCj5XH7R0PTVgwRkCF94+QCfYVci >> >> >+vT4kJycXcLJdc29RCm21Do= > > >>=bVFB >>-----END PGP SIGNATURE----- >> >> >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: eBay >>Great deals on office technology -- on eBay now! Click here: >>http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 >>_______________________________________________ >>Boa-constructor-users mailing list >>Boa...@li... >>https://lists.sourceforge.net/lists/listinfo/boa-constructor-users >> >> >> >> > > > > > >------------------------------------------------------- >This SF.NET email is sponsored by: eBay >Great deals on office technology -- on eBay now! Click here: >http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 >_______________________________________________ >Boa-constructor-users mailing list >Boa...@li... >https://lists.sourceforge.net/lists/listinfo/boa-constructor-users > > |
From: Kevin L. <kl...@wa...> - 2003-06-16 17:53:12
|
Alastair, Hmmm... There should not be any problems debugging the code with what you've described. The Boa debugger has been fairly stable over the last few releases. I've had occasional problems if I didn't close and restart the debugger between editing iterations. I've also had problems where the debugger will not catch a thrown exception, but running the code from the command line usually displays the exception. If you step over module imports, or calls to external modules, you shouldn't have to deal with them. There is no other easy way to keep the debugger out of external modules, however. My next suggestion would be to try and set break-points in the first module executed. You should be able to set a breakpoint at the very first import (and it should stop there). I suppose there could be some strange interaction between something imported, or dynamically imported that is creating a situation that keeps the breakpoints from being recognized. Please report if you do (or don't) find anything. Kevin > Single stepping works ok, is there anyway to ignore all python modules > which are not in my program directory? > > win2k sp3 > Python 2.2.2 > wxpython 2.4.0.7 > boa 0.2.3 > win32all-150 > > app works fine from the command line. (well except for the bug i'm > trying to pin down in my code) > > There are mixed comments on the boa site about the debugger. is it > stable? does it work for large (>20 modules 1000+lines per module) apps. > All my boa issues have been down to me being dumb so far, i'm kinda > assuming its my fault. > > Just wondering if i've missed something very obvious. > > Al > > Kevin Light wrote: > >>Alastair, >> >>You can also try single stepping into your program. It is possible that >>your program is exiting with an error early on. >> >>Have you tried running your program from the command line? >> >>What OS, and version of Boa Constructor are you using? >> >>Kevin >> >> >> >>>-----BEGIN PGP SIGNED MESSAGE----- >>>Hash: SHA1 >>> >>> Place some print's to see if the code actually goes through those >>> >>> >>lines. If you could reduce the code to a simple example, you could >>post it. >> >> >>>Regards, >>> Javier >>> >>> >>>Alastair Nicol wrote: >>> >>> >>>>Hiya, >>>> I'm trying to debug a boa application and i'm having problems getting >>>>the debugger in boa to work. >>>> >>>>i've set break points in my code (red blobs in the margins) >>>> >>>>i fire up the debugger, press debug continue ( the first icon on the >>>> >>>> >>left of the debugger frame), my app starts up and runs, but does not >>halt at my breakpoints >> >> >>>>Has anyone got an advice? >>>> >>>>Cheers, Alastai |
From: Alastair N. <cal...@bl...> - 2003-06-16 18:47:38
|
Cheers, I've had some progress. temp disable threads (dougghh) i only needed the thread for a wxYield so i had forgotten about it. That didnt fix the problem though. The step over, step out work well ;-) All feel into place once i had one break point to work! I'm not doing any dynamic imports, or on the fly code comp, but i am using dynamic method and class names. for example... def fred(): print "hello from fred" bill=fred bill() Now using the various stepping functions and a boolean seach to find out where breakpoints work i can get to where i need to go very quickly. Stepping thru my code appears to work ok, Break points (where i'm doing dynamic function calls) dont appear to work, need to investiage a bit further on that one. The code where the breakpoints fail is pure python (not even wx), nothing clever except the above I'm now stitting on the floor because i've fallen off my chair!!! Now i've been impressed with Boa (wx rocks too), the debugger is erm, WAY KEWL, and being able to start a shell and run code where your breakpoint... Why didnt i look at the debugger before! When stepping thru code is there anyway to always have the line in question centered on the screen? Al Kevin Light wrote: >Alastair, > >Hmmm... There should not be any problems debugging the code with what >you've described. > >The Boa debugger has been fairly stable over the last few releases. I've >had occasional problems if I didn't close and restart the debugger between >editing iterations. I've also had problems where the debugger will not >catch a thrown exception, but running the code from the command line >usually displays the exception. > >If you step over module imports, or calls to external modules, you >shouldn't have to deal with them. There is no other easy way to keep the >debugger out of external modules, however. > >My next suggestion would be to try and set break-points in the first >module executed. You should be able to set a breakpoint at the very first >import (and it should stop there). I suppose there could be some strange >interaction between something imported, or dynamically imported that is >creating a situation that keeps the breakpoints from being recognized. > >Please report if you do (or don't) find anything. > >Kevin > > > >>Single stepping works ok, is there anyway to ignore all python modules >>which are not in my program directory? >> >>win2k sp3 >>Python 2.2.2 >>wxpython 2.4.0.7 >>boa 0.2.3 >>win32all-150 >> >>app works fine from the command line. (well except for the bug i'm >>trying to pin down in my code) >> >>There are mixed comments on the boa site about the debugger. is it >>stable? does it work for large (>20 modules 1000+lines per module) apps. >>All my boa issues have been down to me being dumb so far, i'm kinda >>assuming its my fault. >> >>Just wondering if i've missed something very obvious. >> >>Al >> >>Kevin Light wrote: >> >> >> >>>Alastair, >>> >>>You can also try single stepping into your program. It is possible that >>>your program is exiting with an error early on. >>> >>>Have you tried running your program from the command line? >>> >>>What OS, and version of Boa Constructor are you using? >>> >>>Kevin >>> >>> >>> >>> >>> >>>>-----BEGIN PGP SIGNED MESSAGE----- >>>>Hash: SHA1 >>>> >>>> Place some print's to see if the code actually goes through those >>>> >>>> >>>> >>>> >>>lines. If you could reduce the code to a simple example, you could >>>post it. >>> >>> >>> >>> >>>>Regards, >>>> Javier >>>> >>>> >>>>Alastair Nicol wrote: >>>> >>>> >>>> >>>> >>>>>Hiya, >>>>>I'm trying to debug a boa application and i'm having problems getting >>>>>the debugger in boa to work. >>>>> >>>>>i've set break points in my code (red blobs in the margins) >>>>> >>>>>i fire up the debugger, press debug continue ( the first icon on the >>>>> >>>>> >>>>> >>>>> >>>left of the debugger frame), my app starts up and runs, but does not >>>halt at my breakpoints >>> >>> >>> >>> >>>>>Has anyone got an advice? >>>>> >>>>>Cheers, Alastai >>>>> >>>>> > > > >------------------------------------------------------- >This SF.NET email is sponsored by: eBay >Great deals on office technology -- on eBay now! Click here: >http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 >_______________________________________________ >Boa-constructor-users mailing list >Boa...@li... >https://lists.sourceforge.net/lists/listinfo/boa-constructor-users > > |