microsoft / microsoft/vscode-cpptools

[WSL] Expression return value incorrectly in watch window

Offen
#565 1 Kommentar 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@pieandcakes arbeitet bereits daran.

Seit 14.3.2017.

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

Beschreibung

Internal bug id:394231
Configuration:
OS: Build 15150.rs_onecore_base_bpt1.170305-1700
VSCode: 1.10.2

Repro Steps:

  1. Download attachment and copy it to Bash side. app2.zip
  2. Open attachment in VSCode and use "C++(GDB/LLDB)" Configuration,update "program" "pipeTransport" "cwd" and "sourceFileMap"Configuration in lanuch.json file as following:
    "program": "/home/grace/temp/app2/a.out",
    "cwd": "/home/grace/temp/app2",
    "pipeTransport": {
    "pipeCwd": "${workspaceRoot}",
    "pipeProgram": "c:\windows\sysnative\bash.exe",
    "pipeArgs": ["-c"],
    "debuggerPath": "/usr/bin/gdb"
    },
    "sourceFileMap": {
    "/home/grace/temp/app2": "c:\temp\app2"
    },
  3. Set a breakpoint at the line which contains text "int c=a/b;"
  4. Press F5 to start debugging
  5. Add expresion 'a/b' in watch window

Expected:
Return a message as "Divide By Zero"

Actual:
As following the pic:

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.