zero-plusplus / vscode-autohotkey-debug

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

Implement format specifiers at log points, etc. #244

Open zero-plusplus opened 2 years ago

zero-plusplus commented 2 years ago

RELATED: https://github.com/zero-plusplus/vscode-autohotkey-debug/issues/237#issuecomment-1212982796

I was looking for a format for converting variable values to hexadecimal, etc., for log points, etc., and format specifiers seems to be good and easy to implement.

The idea of converting the following objects to strings can also be implemented with this.

number := 123
; @Debug-Output => decimal: {number}
; @Debug-Output => hex: {number, X}

obj := { key: "value" }
; @Debug-Output => {obj, yaml}
; @Debug-Output => {obj, json}
zero-plusplus commented 1 year ago

The following specifiers are supported.

If something is missing, please request it.