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-tseconds: 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30d2d559bbbc08777f5e8ca21a4408d9996cce1b198d76c64d237b80c687490a
|
|
| MD5 |
27cd56f378197b61f0d1d7a7dcf644c8
|
|
| BLAKE2b-256 |
de21a4332153fbcd55007643ba269bb906b2ac9b53ce80529ef6ac5e4e4f29f2
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f5ace99168007a0a38951c0e70c01cb3397c7c08389cd21273d9b45fd253ef9
|
|
| MD5 |
4f9738c4057b2a4123d0aff903570064
|
|
| BLAKE2b-256 |
0be174a6ce85097054bb0bc012f7dbbdfd46cea0e0cc8a908e855c02c4fb9bea
|