Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JustMyCode = False does not work when debugging a Jupyter Notebook Cell #8413

Closed
flyforwardFast opened this issue Dec 1, 2021 · 8 comments
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@flyforwardFast
Copy link

Issue Type: Bug

Following the great feature for VSCode to debug a cell in the Jupyte notebook (https://code.visualstudio.com/docs/datascience/jupyter-notebooks), I was able to run it to step through my code. However, it does not step into XGboost library even though I set the JustMyCode to False as below. The debug Concole was outputint " Frame skipped from debugging during step-in.
Note: may have been skipped because of "justMyCode" option (default == true). Try setting "justMyCode": false in the debug configuration (e.g., launch.json).
"
This is a follow up question of this microsoft/debugpy#795, which has been succesfully resolved by configure the setting properly. Please let me know if additional configuration is required. Thanks in advance.

"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": false
},
{
"name": "Python: Debug Test",
"type": "python",
"request": "launch",
"program": "${file}",
"purpose": ["debug-test"],
"console": "integratedTerminal",
"justMyCode": false
}
]

Extension version: 2021.10.1101450599
VS Code version: Code 1.62.3 (Universal) (ccbaa2d27e38e5afa3e5c21c1c7bef4657064247, 2021-11-17T07:59:13.865Z)
OS version: Darwin x64 20.4.0
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2300)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 1, 1, 2
Memory (System) 16.00GB (0.16GB free)
Process Argv --crash-reporter-id 19e43964-94c8-45bf-826d-09ace1e20d72
Screen Reader no
VM 0%
@flyforwardFast flyforwardFast added the bug Issue identified by VS Code Team member as probable bug label Dec 1, 2021
@karthiknadig
Copy link
Member

Have you tried disabling this setting:
image

@rchiodo
Copy link
Contributor

rchiodo commented Dec 1, 2021

That setting isn't actually applied during cell debugging. That's from interactive window debugging.

We don't currently support just my code on notebook cells. See this issue here:
#8146

@flyforwardFast
Copy link
Author

flyforwardFast commented Dec 2, 2021 via email

@tnielens
Copy link

tnielens commented Dec 6, 2021

Same here, I expected the vscode jupyter "Debug Just My Code" setting to apply to cell debugging.

@matangover
Copy link

matangover commented May 14, 2022

That setting isn't actually applied during cell debugging. That's from interactive window debugging.

Could you please rename that setting or update its description? The name is misleading

@DomInvivo
Copy link

That setting isn't actually applied during cell debugging. That's from interactive window debugging.

We don't currently support just my code on notebook cells. See this issue here: #8146

It seems that it supports jupyter cell debugging now. It worked on my end! Don't forget to restart the kernel.

@6Roy
Copy link

6Roy commented Jun 10, 2023

您是否尝试过禁用此设置: 图像

请问这个在哪啊

@xingener
Copy link

您是否尝试过禁用此设置: 图像

请问这个在哪啊

@6Roy 在设置里,搜索 debug jupyter 可以很容易看到

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

8 participants