You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When adding a debug breakpoint in VsCode and setting a Log Message it says: Expressions within {} are interpolated.
But doing so will result either in:
-> =breakpoint-modified,bkpt={number="2",type="dprintf",disp="keep",enabled="y",addr="0x08033152",func="MainProcess_init",file="general/MainProcess.c",fullname="/workspaces/general/MainProcess.c",line="78",thread-groups=["i1"],times="1",script={"printf \"Hello\",{logStoreLocation.startAddress}"},original-location="/workspaces/general/MainProcess.c:78"}
-> &"Wrong number of arguments for specified format-string\n"
Wrong number of arguments for specified format-string
-> =breakpoint-modified,bkpt={number="2",type="dprintf",disp="keep",enabled="y",addr="0x08033152",func="MainProcess_init",file="general/MainProcess.c",fullname="/workspaces/general/MainProcess.c",line="78",thread-groups=["i1"],times="1",script={"printf \"Hello\",{logStoreLocation.startAddress},,address:,{logStoreLocation.startAddress}"},original-location="/workspaces/general/MainProcess.c:78"}
-> &"A syntax error in expression, near `,address:,{logStoreLocation.startAddress}'.\n"
A syntax error in expression, near `,address:,{logStoreLocation.startAddress}'.
I already saw in #542 that the format in Log message must be like :"Hello %d\n" 123, but this is not obvious for anyone using VsCode.
To Reproduce
Steps to reproduce the behavior:
Create breakpoint and select Log Message and enter Hello {123}
Start debug session
See issue in Debug console
Expected behavior
The log message should be printed.
Screenshots
Environment (please complete the following information):
Cortex-Debug Version (this extension) 1.12.1
OS: Linux ubuntu:22.04 devcontainer
GDB Version: STMicroelectronics ST-LINK GDB server. Version 7.8.0
Describe the bug
When adding a debug breakpoint in VsCode and setting a Log Message it says:
Expressions within {} are interpolated
.But doing so will result either in:
Log Message:
Hello {logStoreLocation.startAddress}
Log Message:
Hello {logStoreLocation.startAddress} ,address: {logStoreLocation.startAddress}
I already saw in #542 that the format in Log message must be like :
"Hello %d\n" 123
, but this is not obvious for anyone using VsCode.To Reproduce
Steps to reproduce the behavior:
Hello {123}
Expected behavior
The log message should be printed.
Screenshots
Environment (please complete the following information):
Please include
launch.json
The text was updated successfully, but these errors were encountered: