microsoft / microsoft/vscode-cpptools

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

Offen
#1,934 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@pieandcakes arbeitet bereits daran.

Seit 22.5.2018.

debugger
Vorherrschende Sprache
TypeScript
Sterne
6.2k
Forks
1.7k
Ø Merge
14 Std. 46 Min.
Gemergte PRs (30 T.)
61

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.