Replies: 3 comments 2 replies
-
Yes, they are. It was intended and implemented.
And This was intended as an alias to clarify that it outputs a message. Therefore, the feature is duplicated. Later, when I added message grouping to
I hadn't thought of a way to output the reason for the break. Surely that way it would be better to have both the break and the message output executed. It would be possible to solve this issue if a short hand with the following equivalent feature could be provided.
My idea is to extend the output operator as follows.
The |
Beta Was this translation helpful? Give feedback.
-
I will accept whatever behaviour you choose, but I do not agree with your explanations.
I don't follow your reasoning. Why is it necessary for
That is not a suitable alternative.
If I'm going to use the UI, why use a directive at all? Again, it's not a suitable alternative.
Right,
I think that highlights why the current behaviour doesn't make sense. It is redundant for I don't see any advantage to the current behaviour.
You could use |
Beta Was this translation helpful? Give feedback.
-
vscode allows a single breakpoint to have a condition, a hit condition, and a log point at the same time. When these are set simultaneously, a logpoint is output only when both the condition and the hit condition are matched. In this case, no break is made. To reproduce this specification, breakpoint directives do not output logs and break at the same time.
This was my thinking at the time of implementation and I do not think so now.
"full stop" (break) means stop debugging? I thought about this while writing the above, and you are right, it would be more beneficial to the user if breakpoint directives always break the script, regardless of the output. The use of three simultaneous breakpoint settings in the UI is something many people are unaware of, and I didn't think I should insist on recreating it. Thanks for your opinion, I appreciate it. The release of the next version will be delayed due to a lack of time. If you want to use the latest version immediately, clone the
|
Beta Was this translation helpful? Give feedback.
-
I guess it's intended that
; @Debug-Breakpoint => message
doesn't break, like logpoint, but isn't that the same as; @Debug-Output => message
?I find myself using both directives together, to both break and display information that shows why I'm at a breakpoint and save me the trouble of inspecting variables.
I think it would be more useful for Breakpoint to break even if there is a message, and not automatically resume after logging the message.
Beta Was this translation helpful? Give feedback.
All reactions