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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29428c34bce4a9bdcccc198e2a0205b6af4b32892dc6a6e72ea040029e196d94 |
|
MD5 | 8ad9e4c65027578e839a662195db6d18 |
|
BLAKE2b-256 | 06cf8f468513100d8c3b60c1ead64a923994a8eae8d1c0933891874fab71f211 |
Close
Hashes for vscode_debugger_magic-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e95a837bef01672a6ccdba3374a19f52b6adb078fdf8478c78fda8047634b0ac |
|
MD5 | 95b6096f706cc35b8ebd2f12f07a4260 |
|
BLAKE2b-256 | 4f7f9cacc757dfdeb346d4b3b2eadf955b2f7f5dd414130a9669faa7adee37b5 |