Replies: 1 comment 3 replies
-
I think there was a reason for this, but now I don't see a problem with it being printed on multiple lines.
The reason for implementing This idea came to me while creating a unit test library, and it would be very useful to be able to break only when called directly from a unit test. The error object is not included because the method to retrieve it requires a slightly cumbersome implementation. I understand that if the error object is not included when diagnosing an error, this variable has no value, so I will try to improve it. I will try to get the error object in the following way, any other ideas?
This is a VSCode specification.
I thought the same thing and looked into it, but it seems that it is not possible to expand from the extension side due to VSCode's specifications. Since the current specification is inconvenient for printing call stacks, I will add a string representation, Another way to print call stacks is to use this library. In the next version, this library will be included in the extensions and can be included in debugged scripts using pseudo-variables. I opened a issue related to this problem. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently if I write
; @Debug-Output => {e.Stack}
, line breaks are replaced with the literal text`r`n
and the whole thing is shown as one line. Is there a way to avoid this and just show the text as is (aside from switching to OutputDebug)?I know there is
{{callstack}}
, but that doesn't contain what I want: the call stack at the time the error (e
) was thrown.I had also tried just printing
{e}
, but it is inconvenient: not only is it collapsed by default, but there is a single child item "e: (summary of object)" that also needs to be expanded. The child item itself isn't particularly useful, because all I can see is the class name and part of theExtra
field (the rest is off the screen).If I expand any logged object after the debugger stops, it just shows "No debugger available, can not send 'variables'". Is this a limitation of the extension system?
Is there a way to output the object expanded by default? Aside from being more convenient, I imagine that would provide a workaround for the "No debugger available" problem.
Beta Was this translation helpful? Give feedback.
All reactions