-
Notifications
You must be signed in to change notification settings - Fork 78
Implement debugger options just_my_code and internal frame filtering
#677
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
base: main
Are you sure you want to change the base?
Conversation
just-my-code and internal frame filt…just-my-code and internal frame filtering
just-my-code and internal frame filteringjust-my-code and internal frame filtering
just-my-code and internal frame filteringjust_my_code and internal frame filtering
|
The CI issue will be fixed by #680 |
16172d2 to
3d63612
Compare
src/xdebugger.cpp
Outdated
| if (m_debugger_config.contains("internalModulePaths")) | ||
| { | ||
| for (const auto& p : m_debugger_config["internalModulePaths"]) | ||
| { | ||
| m_internal_modules.push_back(p.get<std::string>()); | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this?
I don't see an equivalent of this in the ipykernel PR
src/xdebugger.cpp
Outdated
| // Load options | ||
| if (m_debugger_config.contains("justMyCode")) | ||
| { | ||
| m_just_my_code = m_debugger_config["justMyCode"].get<bool>(); | ||
| } | ||
|
|
||
| if (m_debugger_config.contains("filterInternalFrames")) | ||
| { | ||
| m_filter_internal_frames = m_debugger_config["filterInternalFrames"].get<bool>(); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't seem this code path will ever be reached? I understand the debugger_config is only internal and it cannot be set from the outside, so those if condition will never be true?
| std::string path = mod.attr("__file__").cast<std::string>(); | ||
| internal_mod_paths.push_back(path); | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also do this for interpreter-raw
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done as a part of 40d3beb
#678