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
mbed-ce generates the file .vscode/launch.json with debug configurations. This is done in cmake code by writing the content line by line.
But there is a more conveniant way in cmake by using template files. CMake can replace special marked placeholders like @SERVER_TYPE@ by cmake variables. So this makes it easier to supply additional debug configurations, as the internal servers in cortex-debug work better than the external + openOCD configuration.
An example is in the cmake tutorial: https://github.com/Kitware/CMake/tree/master/Help/guide/tutorial/Step2
I've tested this with a config.json.in and it will create a config.json with:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
mbed-ce generates the file .vscode/launch.json with debug configurations. This is done in cmake code by writing the content line by line.
But there is a more conveniant way in cmake by using template files. CMake can replace special marked placeholders like @SERVER_TYPE@ by cmake variables. So this makes it easier to supply additional debug configurations, as the internal servers in cortex-debug work better than the external + openOCD configuration.
An example is in the cmake tutorial:
https://github.com/Kitware/CMake/tree/master/Help/guide/tutorial/Step2
I've tested this with a config.json.in and it will create a config.json with:
Config.json.in (not complete):
This will make it easier to add additional settings, e.g. you need to a serial no. for the debug probe when more than one is connected to the PC.
Beta Was this translation helpful? Give feedback.
All reactions