microsoft / microsoft/vscode-cpptools

[WSL] Expression return value incorrectly in watch window

未关闭
#565 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@pieandcakes 已经在做这个了。

开始于 2017年3月14日。

debugger
主要语言
TypeScript
星标
6.2k
派生
1.7k
平均合并
14 小时 46 分钟
30 天内合并 PR
61

描述

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:

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。