microsoft / microsoft/vscode-cpptools
[WSL] Expression return value incorrectly in watch window
Open
@pieandcakes is already working on this.
Since Mar 14, 2017.
debugger
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
Internal bug id:394231
Configuration:
OS: Build 15150.rs_onecore_base_bpt1.170305-1700
VSCode: 1.10.2
Repro Steps:
- Download attachment and copy it to Bash side. app2.zip
- 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"
}, - Set a breakpoint at the line which contains text "int c=a/b;"
- Press F5 to start debugging
- Add expresion 'a/b' in watch window
Expected:
Return a message as "Divide By Zero"
Actual:
As following the pic:
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.