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.

Source Distribution

vscode-debugger-magic-1.3.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vscode_debugger_magic-1.3.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file vscode-debugger-magic-1.3.0.tar.gz.

File metadata

  • Download URL: vscode-debugger-magic-1.3.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.5

File hashes

Hashes for vscode-debugger-magic-1.3.0.tar.gz
Algorithm Hash digest
SHA256 30d2d559bbbc08777f5e8ca21a4408d9996cce1b198d76c64d237b80c687490a
MD5 27cd56f378197b61f0d1d7a7dcf644c8
BLAKE2b-256 de21a4332153fbcd55007643ba269bb906b2ac9b53ce80529ef6ac5e4e4f29f2

See more details on using hashes here.

File details

Details for the file vscode_debugger_magic-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: vscode_debugger_magic-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.5

File hashes

Hashes for vscode_debugger_magic-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f5ace99168007a0a38951c0e70c01cb3397c7c08389cd21273d9b45fd253ef9
MD5 4f9738c4057b2a4123d0aff903570064
BLAKE2b-256 0be174a6ce85097054bb0bc012f7dbbdfd46cea0e0cc8a908e855c02c4fb9bea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page