microsoft / microsoft/vscode-cpptools

[WSL] Expression return value incorrectly in watch window

Open
#565 1 comment 0 reactions 1 assignee View on GitHub

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

  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:

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.