Skip to main content

A Ipython (Jupyter) magic for attaching a debugging session on VSCode

Project description


Attach a debugging session of visual studio code to the jupyter notebook


pip install vscode-debugger-magic


  • Load the magic extension:
%load_ext vscode_debugger_magic
  • Run the magic in jupyter notebook
  • Activate the debugging session in Visual studio code in the Python attached mode:
    "name": "Python: Attach",
    "type": "python",
    "request": "attach",
    "port": 5678,
    "host": "localhost"
  • Set breakpoints in vscode
  • Invoke functions to be debugged


  • --timeoutor -t seconds: timeout to attach debugger
%vscodedebugger -t 10

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for vscode-debugger-magic, version 1.3.0
Filename, size File type Python version Upload date Hashes
Filename, size vscode_debugger_magic-1.3.0-py3-none-any.whl (3.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size vscode-debugger-magic-1.3.0.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page