-
Notifications
You must be signed in to change notification settings - Fork 20
Implement better __repr__ methods for Python debugger objects #801
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: dev
Are you sure you want to change the base?
Conversation
Co-authored-by: xusheng6 <[email protected]>
Co-authored-by: xusheng6 <[email protected]>
|
|
Co-authored-by: xusheng6 <[email protected]>
I've implemented all three requested enhancements:
The enhanced representations now provide much more useful debugging information while maintaining clean, readable output. Commit: eb4b0b1 |
@copilot This now prints
Print all of them instead of omitting them with ... |
@copilot For breakpoint, do not print it is disabled or not |
Co-authored-by: xusheng6 <[email protected]>
... Fixed! The DebugRegisters Now
Commit: bb6e48c |
Co-authored-by: xusheng6 <[email protected]>
This PR adds and improves
__repr__
implementations across Python debugger objects to provide more useful information when debugging or inspecting objects in the REPL.Problem
Previously, many debugger objects would display generic representations that didn't provide meaningful information about their state:
Solution
Now these objects display relevant information in a clear, readable format:
Changes Made
Added
__repr__
methods to:Improved existing
__repr__
methods:Benefits
The changes are minimal and surgical, only affecting string representations without touching core functionality or breaking existing code.
Fixes #352.
💡 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.