On Windows XP, in folder C:\Google\Web2Py\web2py_win_01_60_2\Source\web2py
I created this file "idle.bat": start C:\Python252\Lib\idlelib\idle.pyw %1 %2 %3 %4 %5 %6 %7 %8 %9 --------------------------------------------------------- In the web2py folder I have the usual "applications" folder which contains the "welcome' app folder. I am trying to learn how to debug an app such as 'welcome' with breakpoints. -------------------------------------------------------- So I do these 2 commands in a Command Shell: CD \Google\Web2Py\web2py_win_01_60_2\Source\web2py idle web2py.py Then I press F5 to run ---------------------------------------------------- The Python 2.5.4 Shell starts up a window ending with an error message: Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. **************************************************************** Personal firewall software may warn about the connection IDLE makes to its subprocess using this computer's internal loopback interface. This connection is not visible on any external interface and no data is sent to or received from the Internet. **************************************************************** IDLE 1.2.4 >>> ================================ RESTART ================================ >>> Traceback (most recent call last): File "C:\Google\Web2Py\web2py_win_01_60_2\Source\web2py\web2py.py", line 7, in <module> path = os.path.dirname(os.path.abspath(__file__)) NameError: name '__file__' is not defined >>> ****** How can I resolve this '__file__' is not defined error? ******** --------------------------------------------------------------------------------- If I just do python web2py.py It runs web2py normally, (but I don't see any debugging menus) I also tried python web2py.py -S welcome -M And I got a >>> prompt but it seems to be text mode only. So I am trying to use IDLE, hoping it will give me a more visual debugger with breakpoints, etc. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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 -~----------~----~----~----~------~----~------~--~---