zero-plusplus / vscode-autohotkey-debug

https://marketplace.visualstudio.com/items?itemName=zero-plusplus.vscode-autohotkey-debug
53 stars 4 forks source link

Debug output incorrectly merged #301

Open Lexikos opened 1 year ago

Lexikos commented 1 year ago

With this code, two separate messages are logged, and each one can be expanded to show "x":

x := {}
; @Debug-Output => a {x}
(1)
; @Debug-Output => b {x}
(2)
; @Debug-Breakpoint

/* Output (correct):
v a
  > x: Object {}
v b
  > x: Object {}
*/

...but if the second output directive does not include an object, the line break from the first directive is lost, and it cannot be expanded to show "x":

x := {}
; @Debug-Output => a {x}
(1)
; @Debug-Output => b
(2)
; @Debug-Breakpoint

/* Output (incorrect):
   a b
*/

I see the same behaviour with logpoints.

I am using extension v1.11.0.

zero-plusplus commented 1 year ago

Issue Confirmed.

The fix will take some time as I am currently working on an extension that supports AutoHotkey v1 and v2 as a priority.