You have 2 options, first is to optne the full web2py with applications 
directory and open web2py script and hit run (with internal console, 
external and so on should work)

Or setup remote debugging 
https://donjayamanne.github.io/pythonVSCodeDocs/docs/debugging_remote-debugging/

basically you need to install python -m pip install  ptvsd and then in for 
example db.py put the two lines

import ptvsd
ptvsd.enable_attach("my_secret", address = ('0.0.0.0', 3000))



and that will be it... Im just testing now, but I guess any of the two 
should work





El miércoles, 22 de marzo de 2017, 5:34:17 (UTC-6), Andrea Fae' escribió:
>
> I tried to use Visual Studio Code like IDE for debugging web2py programs.
>
> In the launch.json I inserted this:
> {
>             "name": "Web2py",
>             "type": "python",
>             "request": "launch",
>             "stopOnEntry": true,
>             "pythonPath": "${config.python.pythonPath}",
>             "program": "${workspaceRoot}/../../web2py.py",
>             "args": [
>             ], 
>             "cwd": "${workspaceRoot}",
>             "debugOptions": [
>                 "WaitOnAbnormalExit",
>                 "WaitOnNormalExit",
>                 "RedirectOutput"
>             ]
>         }
>
>
> I installed Python 0.6.0 extension from Don Jayamanne.
> But if I fix some breakpoints the program doesn't stop...why?
> I'd like to use Visual Studio Code to debug my web2py programs...
>
> Moreover, anyone knows if there is a free easy IDE to use as debugger for 
> web2py? Can I have any information?
>
> Thank you
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to