Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 647 Bytes

DEBUGGING.md

File metadata and controls

28 lines (23 loc) · 647 Bytes

Debugging

It is possible to run Reflex apps in dev mode under a debugger.

  1. Run Reflex as a module: python -m reflex run --env dev
  2. Set current working directory to the dir containing rxconfig.py

VSCode

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}/.."
        }
    ]
}