The following trick I used with WingIDE (with other modules)...might work also for your IDE. Instead of import rpdb2; rpdb2.start_embedded_debugger('any_password') use if 0: import rpdb2; rpdb2.start_embedded_debugger('any_password')
In production (not using WingIDE) the if will always be false, hence not execute the import. But WingIDE executes ALL imports in a python file when loaded/started, regardless if the program flow reaches the import statement later or not. BTW in production I'm using Ubuntu 8.04.1+MySQL+Apache+SSL+WSGI, development WinXP+MySQL+WingIDE Professional WingIDE Professional is fantastic. If you develop open source you can get a free Professional license. Hans On Jul 29, 12:02 am, Fran <francisb...@googlemail.com> wrote: > On Jul 28, 10:52 pm, rb <rbspg...@gmail.com> wrote: > > > I'm not crazy about having to modify code in > > web2py.py in order to do debugging. I've never used a debugger before > > that forced me to modify code. > > Could you not just have it as a line in your model which you can > easily comment-out when going into production? > > F --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---