Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jul 3, 2025

TITLE: Fixing Debugger Breakage Due to %reset Command in VS Code Jupyter

USER INTENT: The user intends to implement a fix for the issue where the %reset command in VS Code Jupyter breaks the debugger functionality.

TASK DESCRIPTION: The goal is to modify the behavior of the %reset command to prevent it from removing critical debugger-related variables and modules, ensuring that breakpoints continue to function after the command is executed.

EXISTING: The user has identified the issue and provided a workaround using the command #!%reset_selective -f ^(?!(debugpy|get_ipython|os|trace_this_thread)$).*$, which allows the debugger to remain functional by selectively resetting variables.

PENDING: The user has requested a code change to implement a solution that prevents the %reset command from affecting debugger-related variables. The specific implementation details need to be determined.

CODE STATE: The conversation does not provide specific file paths or code snippets that have been modified yet, as the user has just requested to fix the issue.

RELEVANT CODE/DOCUMENTATION SNIPPETS:

  • Workaround command: #!%reset_selective -f ^(?!(debugpy|get_ipython|os|trace_this_thread)$).*$
  • Issue summary indicating the root cause: %reset clears the user namespace, affecting debugger functionality.

OTHER NOTES: The assistant has suggested potential directions for the fix, including preventing the removal of debugger-related variables, patching the IPython kernel, or re-injecting debugger hooks when %reset is executed. The user has opted to proceed with a code change without requesting further technical details.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

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