microsoft / microsoft/vscode-cpptools
[Windows][cygwin] Couldn't print the exception of 'divide by zero' in watch window.
Open
@pieandcakes is already working on this.
Since May 22, 2018.
debugger
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
VSCode Version:1.23.0
OS Version: Window7 X64
Cpptools: \scratch2\scratch\waan\vsdbg-cpptools-test
GDB: C:\cygwin64\bin\gdb.exe
Steps to Reproduce:
- Open tests folder in attachments directly.
test.zip - Update "program" and "miDebuggerPath" in launch.json as following:
"program": "${workspaceRoot}/a.exe",
"miDebuggerPath": "C:\cygwin64\bin\gdb.exe", - Set a breakpoint at line of 6 'a++' in a.cpp file.
- Press F5 to start debugging.
- Add '1/0' & 'a/0' in watch window.
Excepted:
Print divide by zero exception as following:

Actual:
Couldn't execute the exception expression as following:

Investigation:
- This issue didn't reproduce in vsdbg.
- I tried to debug this project with gdb in command window, it can work correctly.

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.