Output directive - zero-plusplus/vscode-autohotkey-debug GitHub Wiki

output-directive

See Debug directive for notes.

Similar to the Breakpoint directive, but limited to Log point. Instead, a grouping feature has been added.

Syntax

This directive has the following syntax.

; @Debug-Output:GROUPING(CONDITION)[HITCONDITION] => MESSAGE
  • GROUPPING - Group the log. Be sure to ungroup with end as this will affect all subsequent outputs
    • start - Starting a new group
    • startCollapsed - Same as start, but the created groups will be collapsed
    • end - Ending the group
  • CONDITION - See Conditional breakpoint
  • HITCONDITION - See Hit conditional breakpoint
  • => - Output operator
    • -> - Outputs the MESSAGE as it is
    • => - A line feed code is placed at the end of the MESSAGE
    • ->| or =>| - The same as for each operator, but it suppresses the automatic removal of leading whitespace
  • MESSAGE - See Log point's Embedding value

The following is an example of a valid directive.

; @Debug-Output:start => {person.name}
; @Debug-Output => name: {person.name}
; @Debug-Output => age: {person.age}
; @Debug-Output:end