Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Feature Request: Conditional Breakpoints

Đang mở
#883 1 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python, typescript, vscode
Lĩnh vực
devtools

Hướng nghiên cứu

Issue không nêu tên tệp, bài kiểm thử hay entry point nào. Hãy bắt đầu bằng cách lần theo cách trạng thái và việc đánh giá breakpoint được xử lý trong trình gỡ lỗi Python; done phải bao quát các trường hợp UI và hành vi được liệt kê cho các điều kiện rỗng, không hợp lệ, true và false.

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

Mô tả

triage-needed

Motivation

For efficient debugging, I very often need to have a break-point trigger only under certain circumstances.

Consider the following setup

Image

here I may for example only wish for the break point to trigger if

"advanced" in case.tags

holds.

Current workaround

Currently, I can achieve this, but only by rewriting the code as a workaround:

Image

Proposal

The workaround is clearly clumsy, esp. as it means injecting code into ones codebase, which is en par with adding print statements everywhere.

What would be much more ideal would be one could simply add dynamic trigger-conditions to the break points.[^trigger]

For example in the UI would could add a right-click menu to the individual break points > add conditions > user entry of boolean expression:

Image

Here one could consider the cases

checkbox trigger condition behaviour
* never triggers
(empty) always triggers
cannot be evaluated never triggers
can be evaluated and evaluates to true triggers in the given instance
can be evaluated and evaluates to false does not trigger in the given instance

[^trigger]: currently they can only statically be toggled.

Ngôn ngữ chính
TypeScript
Star
181
Fork
126
Merge trung bình
2 ngày 3 giờ
Pull request đã merge (30 ngày)
3

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-python-debugger

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

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.