Hi Luca,
Thanks for the help, I agree the restart is very quick but I was hoping to be able to step through the code and I seem to have it working now with VS Code.
I'll put my steps for anyone else having issues.
Download git.
Run in terminal, command prompt, etc. :
Open the folder in VS Code by going to File > Open Folder or via console type code . in the directory you installed py4web.
Click Run > Add Configuration.
Paste and save:
{
"version": "0.2.0",
"configurations": [
{
"name": "py4web",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}\\py4web.py",
"args": [
"run",
"apps"
]
}
]
}
Go to Run > Start Debugging.
Put a breakpoint on one of the lines inside a controller function and it'll hit be it.
Breakpoints for @action.uses( ) and function names seem to only be hit during the initial build of the applications but function contents do hit their breakpoints when navigated to (example below).
Hopefully this saves someone else some pain.
- Nathan