-
Notifications
You must be signed in to change notification settings - Fork 49
Improve Breakpoint Error Logging #401
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
Improve Breakpoint Error Logging #401
Conversation
|
Addresses part 1) of #402 |
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.
LGTM! Apologies for applying review feedback myself. @omarArm is out for a couple of days.
I think switchOutputToError will evolve over time. I suspect there is more severe errors hidden in the blue logs. Improve the error transformation code when adding more.
Problem:
When a user is using remote GDB and tries to set more than the amount of HW breakpoints, GDB sends a warning message and cannot step anymore.
Solution:
I created this PR, where a red error message will be printed to the user to ask for the extra breakpoints to be erased.
Future work:
When the user sets all of the breakpoints before starting the debug session the adapter sends an error message to VSCode, which in turn triggers a disconnect request back to the adapter. This should be mitigated somehow for a consistent behaviour between before and after the debug session starts