microsoft / microsoft/vscode-cpptools

[Windows][cygwin] Couldn't print the exception of 'divide by zero' in watch window.

Open
#1,934 0 comments 0 reactions 1 assignee View on GitHub

@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:

  1. Open tests folder in attachments directly.
    test.zip
  2. Update "program" and "miDebuggerPath" in launch.json as following:
    "program": "${workspaceRoot}/a.exe",
    "miDebuggerPath": "C:\cygwin64\bin\gdb.exe",
  3. Set a breakpoint at line of 6 'a++' in a.cpp file.
  4. Press F5 to start debugging.
  5. Add '1/0' & 'a/0' in watch window.

Excepted:
Print divide by zero exception as following:
image

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

Investigation:

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.