Skip to content
| Marketplace
Sign in
Visual Studio Code>Debuggers>Just My Code Toggle for PythonNew to Visual Studio Code? Get it now.
Just My Code Toggle for Python

Just My Code Toggle for Python

Korol Serhii

| (0) | Free
Switch the Python debugger's justMyCode on or off with one click in the status bar — no launch.json editing.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Just My Code Toggle for Python

Switch the Python debugger's Just My Code on or off with one click — no more editing launch.json every time you need to step into a library.

Answers the long-standing request microsoft/vscode-python-debugger#116, which the Python debugger maintainers point people to whenever they ask for "a little toggle switch to turn justMyCode on and off".

How to use

  • Look at the status bar while a Python file, a notebook or a Python debug session is open:
    • My Code — Just My Code is ON: the debugger skips library code (the default).
    • All Code — Just My Code is OFF: you can step into libraries and stop on exceptions inside them.
  • Click it to switch. Or run Python Debugger: Toggle Just My Code from the Command Palette.
  • If a debug session is already running, you are offered Restart session — debugpy reads the option only when a session starts.

What it does

  • Applies the switch to every Python debug session: debugpy and the legacy python type, with or without launch.json, including test debugging.
  • Overrides "justMyCode" in launch.json, so one click is enough. Your launch.json is never changed.
  • Also sets jupyter.debugJustMyCode, so notebook and Interactive Window debugging follow the same switch (turn off with justMyCodeToggle.syncJupyter).
  • The value is a normal setting, justMyCodeToggle.enabled, so it syncs with Settings Sync.

Settings

Setting Default
justMyCodeToggle.enabled true Just My Code for every Python debug session
justMyCodeToggle.syncJupyter true Also set jupyter.debugJustMyCode
justMyCodeToggle.showInStatusBar true Show the switch in the status bar

Requires the Python Debugger extension.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft