Branko, Thanks for that.
When I attempt to invoke web2py in iPython it seems to hang. I tried this: ipython web2py.py -a 1234 -i 127.0.0.1 -p 8000 On Dec 14, 2010, at 15:09 , Branko Vukelic wrote: > Think of ipdb as of a print statement on steroids. If you want to > debug a particular part of your app, you simply add this before that > section in the source code: > > import ipdb; ipdb.set_trace() > > When the server hits that part of the code, it will halt execution and > display a prompt in the terminal. It's a regular IPython shell that > accepts arbitrary python statements and expressions, as well as a > debugging environment that supports pdb-style commands, like ``s`` for > step, ``r`` for return (I think), etc. I don't remember the exact > commands, but I think you can get help by typing ``h`` or ``help``. > > On Tue, Dec 14, 2010 at 10:02 PM, Lorin Rivers <lriv...@mosasaur.com> wrote: >> Branko, >> >> Can you explain how you use iPython and ipdb together to debug web2py apps? >> >> How do I invoke web2py? How do I pass parameters to it like I do when >> invoking it with python (e.g., "python web2py -a mumble -p 8000 -i >> 127.0.0.1") >> >> Thanks! >> >> On Dec 13, 2010, at 23:13 , Branko Vukelic wrote: >> >>> On Tue, Dec 14, 2010 at 5:45 AM, Bruno Rocha <rochacbr...@gmail.com> wrote: >>>> Someone else has any debug tip or advice for sharing? >>> >>> I used this: http://pypi.python.org/pypi/ipdb >>> >>> All the IPython goodness + pdb-style debugging. You get auto-complete >>> and command history, too. ;) >>> >>> >>> -- >>> Branko Vukelić >>> >>> bg.bra...@gmail.com >>> stu...@brankovukelic.com >>> >>> Check out my blog: http://www.brankovukelic.com/ >>> Check out my portfolio: http://www.flickr.com/photos/foxbunny/ >>> Registered Linux user #438078 (http://counter.li.org/) >>> I hang out on identi.ca: http://identi.ca/foxbunny >>> >>> Gimp Brushmakers Guild >>> http://bit.ly/gbg-group >> >> -- >> Lorin Rivers >> Mosasaur: Killer Technical Marketing <http://www.mosasaur.com> >> <mailto:lriv...@mosasaur.com> >> 512/203.3198 (m) >> >> >> > > > > -- > Branko Vukelić > > bg.bra...@gmail.com > stu...@brankovukelic.com > > Check out my blog: http://www.brankovukelic.com/ > Check out my portfolio: http://www.flickr.com/photos/foxbunny/ > Registered Linux user #438078 (http://counter.li.org/) > I hang out on identi.ca: http://identi.ca/foxbunny > > Gimp Brushmakers Guild > http://bit.ly/gbg-group -- Lorin Rivers Mosasaur: Killer Technical Marketing <http://www.mosasaur.com> <mailto:lriv...@mosasaur.com> 512/203.3198 (m)