Skip to main content

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

Project description

Vscode-Debugger-Magic

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

Install

pip install vscode-debugger-magic

Usage

  • Load the magic extension:
%load_ext vscode_debugger_magic
  • Run the magic in jupyter notebook
%vscodedebugger
  • 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

Option:

  • --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

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page