Ignore Certain Exceptions while Debugging

Đang mở
#2,374 7 bình luận 7 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
25/100
Loại issue
Tính năng
Độ 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

Issue không nêu tên tệp triển khai hoặc bài kiểm thử nào. Hãy bắt đầu bằng cách truy vết cách tiện ích mở rộng C/C++ xử lý cài đặt breakpoint “All Exceptions” và việc tạm dừng khi xảy ra exception; so sánh hành vi của bảng điều khiển gỡ lỗi với việc quá trình thực thi bị dừng. Công việc được xem là hoàn tất khi người dùng có thể bỏ qua các loại exception đã chọn, hoặc thực sự tiếp tục mà không dừng khi xảy ra exception nếu tính năng dừng trên tất cả exception đã bị tắt.

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

Mô tả

debugger

Type: Debugger

  • OS and Version: Windows 10 Enterprise x64
  • VS Code Version: 1.25.1
  • C/C++ Extension Version: 0.17.7
  • Other extensions you installed (and if the issue persists after disabling them): N/A

There currently doesn't appear to be a way to ignore/skip breaking on specific exceptions when debugging.

In my specific use case, an Antivirus DLL is injected (beyond my control) that monitors and regulates memory access, and causes a large number of access violation errors in OS libraries.
log

These errors don't seem to cause functional issues with the program, and I can step over them to continue, but there are often 10, 20, or more steps that cause violations per line in the code I write, and it very quickly becomes unreasonable.

This is with the "All Exceptions" box unchecked, when checked the errors are not logged to the debug console, but execution is still paused and so I am presented with the same problem.
stack

Being able to even truly ignore all exceptions and only stop on breakpoints (as mentioned, execution is till paused on thrown exceptions with the "All Exceptions" breakpoint checkbox left clear) would be beneficial, but the ability to specifically ignore types of exceptions would be preferential.

Apologies if this is an existing feature or if an issue was already opened, I spent a good couple of hours digging for a solution and checking to make sure it wasn't already a requested feature and didn't see anything, but I'm new to issue reporting and may have overlooked something.

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.