zero-plusplus / vscode-autohotkey-debug

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

Add prefix to specify command for log output in logpoints and debug directives. #287

Open zero-plusplus opened 1 year ago

zero-plusplus commented 1 year ago

The prefix has various effects on subsequent logs. If more than one is specified, each is treated as a separate log. If the prefix appears as a stand-alone, no log is output, only the effect is given.

Group Prefix

The following prefixes that change the group at output.

Category Prefix

The following prefixes change the category of subsequent logs.

Action Prefix

The following are prefixes that execute the action. These prefixes are executed only once at prefix-specific timing, regardless of the position and number of times specified. It is recommended that this is specified at the beginning of the log, as the log is split in the same way as another prefixes.

Examples

The following breaks the script after outputting test.

{:break:}test

Clear the log up to that point, then output test and break the script.

{:break:}{:clear:}test