www.winpdb.org On Sun, Jul 26, 2009 at 2:39 AM, Yarko Tymciurak <yark...@gmail.com> wrote:
> Have you tried Winpdb (despite the name, it's a python platform > independant debugger) > > I've not tried it for web2py - I usually run web2py out of WingIDE (which > will catch exceptions, so you can inspect variables, stack, etc.). > > > On Sun, Jul 26, 2009 at 2:16 AM, rb <rbspg...@gmail.com> wrote: > >> >> I am running web2py on my ubuntu machine and my client is a WinXP in >> virtualbox connected in bridge mode (thus both machines are on the >> same LAN address space - and they are the same laptop computer ;-). I >> put web2py on one virtual desktop and the WinXP vbox client in the >> other and I can just click back and forth from client-svr-client. >> >> Ok, so I downloaded geany and looked at it. It looks very nice but... >> where is the debugger? I think eclipse is a titanic of a (eeww java) >> IDE but pydev works and the visual debugger works well. >> >> Right now I'm pulling my hair out. I put some kind of bug into >> default.py controller and now my XMLRPC calls just fail with a 400 Svr >> error. I opened a shell and loaded exec_environment('applications/ >> appname/controllers/default.py') but no errors register. Dunno now how >> to debug this thing. With eclipse I can run web2py (while in root >> user) in eclipse in debug mode, and single step through the controller >> code - when this !...@#$ing error does not happen. I'll continue to dig >> around. >> >> Anyone care to share their secrets for debugging controller code? BTW >> my error crept in when I declared a couple of global vars. I >> introduced a new function for the client to call (via XMLRPC - which >> effectively just runs controller functions in the controller space) to >> populate the lobal vars so I cannot imagine that there's something >> wrong with the environment. Everything worked before this. Now I >> cannot trigger the debugger to stop at any breakpoints. This makes me >> believe that the controller default.py is failing while loading. >> Seeing as it isn't an importable python module, I'm left wondering how >> to dig into this one. >> >> Also, I noticed that I can debug/pick through most of my model/db.py >> code simply by selecting the "database administration" feature. It >> rings up a trouble ticket and shows where the code failed. Very nice. >> >> -- >> Rb (still stuck in WTF-land) >> >> >> >> >> >> On Jul 25, 5:29 am, Jason Brower <encomp...@gmail.com> wrote: >> > I used pydev for a while. But when I am running off the server, have >> > you ever concidered using the -X feature? >> > I use that often when I need to run off the server. >> > Let's say for example that you need to see the errors... >> > I connect with ssh to my server like so... >> > ssh -X 123.123.123.123 >> > then I start screen... >> > screen -rd >> > the -rd connects to a previous screen that I already have running... >> > this has my instance of web2py and I can start other programs too... >> > I open up links... >> > links2 -g >> > and then geany... >> > geany >> > geany is my editor of choice. I highly recommend the help area of the >> > program can is can teach you all the shortcuts and little things that >> > make geany so freaking awesome. >> > With my server on a 1 meg line and me on a 1 meg line I am able to work >> > fairly well. >> > Regards, >> > Jason >> > >> > On Fri, 2009-07-24 at 21:44 -0700, rb wrote: >> > > Fine. I'll just have to use eclipse then. I use eclipse for the thick- >> > > client pydev work so I'll use it on the svr side too. I take it from >> > > your response that you received no answer (either). I've tried using >> > > "It's All Text!" firefox addon and gedit on my ubuntu svr box but >> > > gedit is just a generic editor. I need something which supports python >> > > with hightlighting and automatic indentation. I think Vim can do this >> > > but I've never been able to wrap my head around all that is vi and its >> > > kin. Years ago I used emacs but I no longer know what state that >> > > monster is in. Hmmm I'll have to look around some, I guess. >> > >> > > -- >> > >> > > On Jul 24, 8:12 pm, Jason Brower <encomp...@gmail.com> wrote: >> > > > I have asked this one before. I actually, got really used to using >> my >> > > > own editor. >> > > > Regards, >> > > > Jason >> > >> > > > On Fri, 2009-07-24 at 14:19 -0700, rb wrote: >> > > > > Can anyone tell me how to change the default colour of the cursor >> in >> > > > > the web-edit of files? On my systems the cursor colour against the >> > > > > background is almost impossible to see. Currently I must turn of >> > > > > highlighting when editing so that I can see where I am. >> >> >> > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---