Skip to content

Conversation

@arjxn-py
Copy link
Contributor

@arjxn-py arjxn-py commented Dec 4, 2025

@arjxn-py arjxn-py changed the title Implement debugger options for just-my-code and internal frame filt… Implement debugger options for just-my-code and internal frame filtering Dec 4, 2025
@arjxn-py arjxn-py changed the title Implement debugger options for just-my-code and internal frame filtering Implement debugger options just-my-code and internal frame filtering Dec 4, 2025
@arjxn-py arjxn-py changed the title Implement debugger options just-my-code and internal frame filtering Implement debugger options just_my_code and internal frame filtering Dec 4, 2025
@martinRenou
Copy link
Member

The CI issue will be fixed by #680

@martinRenou martinRenou force-pushed the filter-internal-modules branch from 16172d2 to 3d63612 Compare December 8, 2025 09:10
Comment on lines 73 to 79
if (m_debugger_config.contains("internalModulePaths"))
{
for (const auto& p : m_debugger_config["internalModulePaths"])
{
m_internal_modules.push_back(p.get<std::string>());
}
}
Copy link
Member

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

Comment on lines 81 to 90
// 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>();
}
Copy link
Member

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);
}
}
Copy link
Member

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

Copy link
Contributor Author

@arjxn-py arjxn-py Dec 10, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants