Skip to content

Instantly share code, notes, and snippets.

@maximlt
Last active October 17, 2021 13:38
Show Gist options
  • Save maximlt/6e3360a4ae7c69208881a6dde8fc998f to your computer and use it in GitHub Desktop.
Save maximlt/6e3360a4ae7c69208881a6dde8fc998f to your computer and use it in GitHub Desktop.
Debug a Panel or Lumen app with VS Code

Add this debug configuration that is going to serve the current file, i.e. the one with .servable() calls for Panel or a YAML file for Lumen:

  {
      "name": "Python: Panel",
      "type": "python",
      "request": "launch",
      "module": "panel",
      "args": [
          "serve",
          "${file}",
      ],
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment