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:
--timeout
or-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
Built Distribution
Close
Hashes for vscode-debugger-magic-1.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30d2d559bbbc08777f5e8ca21a4408d9996cce1b198d76c64d237b80c687490a |
|
MD5 | 27cd56f378197b61f0d1d7a7dcf644c8 |
|
BLAKE2b-256 | de21a4332153fbcd55007643ba269bb906b2ac9b53ce80529ef6ac5e4e4f29f2 |
Close
Hashes for vscode_debugger_magic-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f5ace99168007a0a38951c0e70c01cb3397c7c08389cd21273d9b45fd253ef9 |
|
MD5 | 4f9738c4057b2a4123d0aff903570064 |
|
BLAKE2b-256 | 0be174a6ce85097054bb0bc012f7dbbdfd46cea0e0cc8a908e855c02c4fb9bea |