microsoft / microsoft/vscode-cpptools

[WSL] Expression return value incorrectly in watch window

Đang mở
#565 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

@pieandcakes đang làm issue này rồi.

Từ ngày 14/3/2017.

debugger
Ngôn ngữ chính
TypeScript
Star
6.2k
Fork
1.7k
Merge trung bình
14 giờ 46 phút
Pull request đã merge (30 ngày)
61

Mô tả

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:

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.