Skip to content
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 messages for unknown breakpoints and watchpoints. (#1282) #1283

Merged
merged 2 commits into from
Mar 4, 2022

Conversation

gareth-rees
Copy link
Contributor

The C/C++ extension does not support all the features of GDB breakpoints and watchpoints, so users may need to set breakpoints via -exec break ... in the DEBUG CONSOLE, and similarly for watchpoints via -exec watch .... When these are hit, include the available information in the exception message instead of just "Unknown breakpoint" or "Unknown watchpoint". Fixes #1282.

The new behaviour for unknown breakpoints and unknown watchpoints (respectively) is shown in the screenshots below.

Screenshot from 2022-03-03 09-40-34

Screenshot from 2022-03-03 09-37-05

@ghost
Copy link

ghost commented Mar 3, 2022

CLA assistant check
All CLA requirements met.

@gareth-rees
Copy link
Contributor Author

Continuous integration failure on Linux does not seem to be related to this pull request:

sudo apt-get install gdb g++ -y
...
Err:8 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 libc6-dbg amd64 2.31-0ubuntu9.2
  404  Not Found [IP: 40.119.46.219 80]
Fetched 4249 kB in 1s (3954 kB/s)
E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dbg_2.31-0ubuntu9.2_amd64.deb  404  Not Found [IP: 40.119.46.219 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

@WardenGnaw
Copy link
Member

Continuous integration failure on Linux does not seem to be related to this pull request:

sudo apt-get install gdb g++ -y
...
Err:8 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 libc6-dbg amd64 2.31-0ubuntu9.2
  404  Not Found [IP: 40.119.46.219 80]
Fetched 4249 kB in 1s (3954 kB/s)
E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dbg_2.31-0ubuntu9.2_amd64.deb  404  Not Found [IP: 40.119.46.219 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I'm taking a look at this, something within infrastructure changed or that endpoint it pulls from is dead and we need to use a different machine.

…1282)

The C/C++ extension does not support all the features of GDB
breakpoints and watchpoints, so users may need to set breakpoints via
"-exec break ..." in the DEBUG CONSOLE, and similarly for watchpoints
via "-exec watch ...". When these are hit, include the available
information in the exception message.
Copy link
Member

@gregg-miskelly gregg-miskelly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise looks good to me.

src/MIDebugEngine/Engine.Impl/DebuggedProcess.cs Outdated Show resolved Hide resolved
@gregg-miskelly
Copy link
Member

Here is the ResourcesStrings.Designer.cs that VS generates:
ResourceStrings.Designer.zip

@gregg-miskelly
Copy link
Member

Otherwise LGTM

@gareth-rees
Copy link
Contributor Author

Here is the ResourcesStrings.Designer.cs that VS generates

Thanks, I put that in the pull request.

@gareth-rees
Copy link
Contributor Author

@gregg-miskelly Thanks for reviewing and helping me with the internationalization.

@gregg-miskelly gregg-miskelly merged commit de8db64 into microsoft:main Mar 4, 2022
@gregg-miskelly
Copy link
Member

No problem. Thanks for taking the time to submit this PR!

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.

"Unknown breakpoint" and "Unknown watchpoint" messages are not very informative
3 participants