Hi Monir,

I have to explain my env in other words. Before start, you can finish
vscode and python setup:

my pc environment is
win10/pro,
python :3.8.5  (not virtual env)
vscode 1.60.0

steps:

1. download web2py *source *code and  extract it to the desired folder.
2. open the vscode
3. open the folder you extracted web2py source.
4. create a *.vscode* folder and copy these files:

*launch.json*
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal"
        }
    ]
}

*settings.json  *
{
    "python.pythonPath": "C:\\your_python_folder\\python.exe",
    "debug.allowBreakpointsEverywhere": true
}

6. Press F5 or select link from Menu>Run>Start Debugging

I think it will start. Whenever select any row on the code for debug, it
will stop.

Can you try and inform me whether the info is working.

Regards,
Murat.



K P <[email protected]>, 17 Eyl 2021 Cum, 03:06 tarihinde şunu yazdı:

> Hi Murat
>
> I need some help setting up web2py in vs code also. I tried what you said
> (and many other things) but none worked. Please help.
> (Yardim Edibilur)
>
> On Tuesday, September 10, 2019 at 3:03:55 AM UTC-4 [email protected]
> wrote:
>
>> Hi,
>> I work with VSCODE like this:
>> - Open folder includes web2py.py file.
>> - Insert some debug point to desired lines
>> - Press F5
>>
>> Also my environment:
>> Windows 10 Pro
>> Web2py Python 2.7
>> (maybe Py 3> works same.)
>>
>> Best.
>>
>> -------------------------------
>> Murat KAŞIKÇIOĞLU
>> +90 (533) 745-1400 <+90%20533%20745%2014%2000>
>>
>>
>>
>> Monir <[email protected]>, 4 Eyl 2019 Çar, 18:55 tarihinde şunu yazdı:
>>
>>> Hi All,
>>>
>>> I'm new on Python and also on Web2py. I've been searching some sort of
>>> info or step by step about how to config web2py in VS CODE to Debug, Lint,
>>> Intelisense, etc... would be nice!
>>>
>>> But unfortunately, all resources I have found so far seems to be
>>> deprecated. Even here in the group, this seems to be not relevant topic. Am
>>> I wright ?
>>>
>>> I had downloaded Don Jaimanne extension, Pylint, etc without success.
>>>
>>> I would be more than happy with some fresh guide for this
>>>
>>> Regards/
>>>
>>> *Monir*
>>>
>>> --
>>> 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 [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/web2py/CAPMO4iG4HbFnspELy7_uT077RNTAadvzYcAm4mztcJM02Nu3CQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/web2py/CAPMO4iG4HbFnspELy7_uT077RNTAadvzYcAm4mztcJM02Nu3CQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/66037040-8383-4ea2-8208-f9becdf4a4e4n%40googlegroups.com
> <https://groups.google.com/d/msgid/web2py/66037040-8383-4ea2-8208-f9becdf4a4e4n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAC5t_Jy-xqSdQsaW%2BYiPkjy%2BftY9wh7RDGYRmPkeVT3upCxL9Q%40mail.gmail.com.

Reply via email to