When I have them, I find breakpoints invaluable in determining logic bugs. This is the one thing that I miss languages such as Java/C#/C++, is not having a real debugger.
Python debugging is a joke comparatively. I'm still learning web2py source, but the breakpoints probably are not being triggered due to the way that web2py uses controllers, they are not imported/called in the normal way that say a module is. -Thadeus On Wed, Oct 14, 2009 at 1:00 PM, Carl <[email protected]> wrote: > > I'd be interested to hear why you don't find breakpoints useful.. I've > been out of the coding scene for a number of years and am keen to hear > about newer approaches to debugging. > > can you step thru code using ipython? > > > > 2009/10/14 Joe Barnhart <[email protected]>: > > I have to admit, I don't find breakpoints all that useful when debugging > > web2py code. I like the interactive shell you can get by installing > ipython > > and using the --shell=APNAME switch on web2py.py. Sometimes I use print > > statements to send stuff to the console, too. > > > > > > On Wed, Oct 14, 2009 at 6:45 AM, Jonathan Lundell <[email protected]> > > wrote: > >> > >> On Oct 14, 2009, at 1:05 AM, Carl wrote: > >> > >> > > >> > replying to this post myself to kick Google Groups to list it! > >> > >> FWIW, your first message showed up yesterday afternoon as web2py: > >> 32811. No replies, though. > >> > >> > > >> > On Oct 13, 10:47 pm, Carl <[email protected]> wrote: > >> >> hi, > >> >> > >> >> I'm using XP, Eclipse, Web2py/json/pyjs and running dev_appserver > >> >> > >> >> When I place breakpoints on code in functions in controllers/ > >> >> default.py and in methods in modules/subscriptions.py only the latter > >> >> are tripped. > >> >> > >> >> Any idea what might be going on? > >> >> > >> >> When I run web2py.py both sets of breakpoints trip correctly. > >> > >> > >> > >> > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

