[web2py] Re: Visual Studio Code

2022-12-21 Thread Davidiam
I tried the  https://github.com/Andyhasit/web2py_intellisense in VS Code, 
but couldn't get it to work.  
I am sure that I set it up wrong as I didn't quite understand the 
instructions in the readme file.

1) I copied  *auto_completion_support.py* into the modules folder of my 
welcome application.
2) I created a zzz.py in the models folder and added the following code:
if 0: 
import autocomplete_fakes.py 
# from ide_code_completion import *
file = "c:\\temp\\dummy.py"
*generate_auto_completion_file(db, file)*

I tried running it but it wouldn't load the models.
On Friday, May 1, 2020 at 11:55:39 AM UTC+2 villas wrote:

> Further to Andrew's reply you could also try these ideas:
>
>
> http://www.web2py.com/books/default/chapter/29/14/other-recipes?search=ide+#Using-general-purpose-IDEs-with-web2py
>
> https://github.com/Andyhasit/web2py_intellisense
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/174b03d0-2e2b-4880-b7bd-63e25b49fa32n%40googlegroups.com.


[web2py] Re: Visual Studio Code

2020-05-01 Thread Andrew Rogers
Thanks for the reminder re the intellisense. Do you think it still works 
fine? I tried to out just now and had some issues. But  the problem may 
well be me and not it.

On Friday, 1 May 2020 19:55:39 UTC+10, villas wrote:
>
> Further to Andrew's reply you could also try these ideas:
>
>
> http://www.web2py.com/books/default/chapter/29/14/other-recipes?search=ide+#Using-general-purpose-IDEs-with-web2py
>
> https://github.com/Andyhasit/web2py_intellisense
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/8f2dde44-02ef-4343-a288-0b117ed8cf18%40googlegroups.com.


[web2py] Re: Visual Studio Code

2020-05-01 Thread villas
Further to Andrew's reply you could also try these ideas:

http://www.web2py.com/books/default/chapter/29/14/other-recipes?search=ide+#Using-general-purpose-IDEs-with-web2py

https://github.com/Andyhasit/web2py_intellisense

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/46690636-d005-45f2-b91b-d40f9c48ebb2%40googlegroups.com.


[web2py] Re: Visual Studio Code and debugging

2017-03-25 Thread Ty oc
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.