It is possible to run Reflex apps in dev mode under a debugger.
- Run Reflex as a module:
python -m reflex run --env dev
- Set current working directory to the dir containing
rxconfig.py
The following launch configuration can be used to interactively debug a Reflex app with breakpoints.
{
"version": "0.2.0",
"configurations": [
{
"name": "Reflex App",
"type": "python",
"request": "launch",
"module": "reflex",
"args": "run --env dev",
"justMyCode": true,
"cwd": "${fileDirname}/.."
}
]
}