So I found the "jinja: "true"
option for launch.json and am trying to make jinja debugging work, unsuccessfully so far.
My launch.json is currently:
{
"version": "0.2.0",
"configurations": [
{
"name": " uvicorn debug",
"type": "python",
"request": "launch", // set to "test" for "justMyCode" to work.
"module": "uvicorn",
"args":
[
"project.asgi:app",
"--reload",
],
"jinja": true,
"justMyCode": false
}
] }
I faced a problem that I could not set up breakpoints in jinja template file, but solved it adding "debug.allowBreakpointsEverywhere": true
to vscode settings.
My questions are as follows:
a) How is debugging template supposed to work? I add breakpoint anywhere in the template and execution stops there? Or maybe this 'jinja': true
means something completely different?
b) Based on the response on a), if breakpoints in jinja template file should work, how to make this happen, as currently they seem to just be ignored?
Thanks a lot!
debugpy
(used when I launch a python program) there is a similar plugin – Northwestwarddebugpy
: github.com/microsoft/debugpy/issues/381 – Northwestward