[Win10] After __debugbreak(), the debugger no longer works correctly

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
cpp, typescript, vscode
Lĩnh vực
devtools

Hướng nghiên cứu

Tái hiện vấn đề với môi trường được liệt kê gồm Visual Studio 2015, VS Code 1.12.2 và Windows 10 bằng một chương trình C++ có chứa __debugBreak(), sau đó so sánh việc thực hiện từng bước với điểm ngắt F9 thông thường. Theo dõi các cập nhật về luồng hiện tại và vị trí thực thi của trình gỡ lỗi sau F10; hoàn tất khi con trỏ thực thi vẫn hiển thị và chính xác sau mỗi bước.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

debugger

Environment:

  • tool-chain: C++ tool-chain that comes with Visual Studio 2015.
  • VSCode 1.12.2
  • Windows 10.

Steps to reproduce:

  1. Add __debugBreak somewhere in your C++ code.
  2. Start a debugging session until the execution stops in the __debugBreak() call.
  3. From this moment on, try to go step-by-step in the code (using F10)

Expected result:
The debugger should step by step into the code, and the execution cursor (yellow arrow at the left side of the editor pane while in the Debugger view) should show the currently executed line.

Actual result:
The debugger goes step by step into the code, but the execution cursor disappears after the first F10 key-press. After this point you don't know where the execution cursor is.

Recovery:
The only way to recover from this is to look into the call-stack view, select the current thread, and double click the function at the top of the call-stack. After this action, the execution cursor reappears, but only until you press F10 again, when it disappears.

Mention:
This only happens after __debugBreak(). For a normal breakpoint added with F9 the debugger works correctly.

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

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.

Issue khác của microsoft/vscode-cpptools

Tất cả issue của microsoft/vscode-cpptools

Issue tương tự

Thêm issue về TypeScript

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.