config files .cortex-debug.json in wrong folder of workspace
See original GitHub issueMy project is using a workspace with several directorys. To get the git extension showing all included subdirs with git, I add the main workspace as last entry in the workspace file. The cortex-debug extension creates .cortex-debug.peripherals.state.json and .cortex-debug.registers.state.json. But not in my main workspace, they are put in the first folder in the workspace.
this is part of my .workspace.code-workspace:
{
"folders": [
{
"path": "lvgl"
},
{
"path": "mbed-os"
},
{
"path": "lvglDriver"
},
{
"path": "custom_targets"
},
{
"path": "."
}
],
The cortex config is now created in lvgl/.vscode, which is not wanted because it changes the git repo. cortex-debug has
"cwd": "${workspaceRoot}",
so it should use this for storing the configuration. How can I fix it?
it looks like it is created here: https://github.com/Marus/cortex-debug/blob/2bd83e0366beac890308bdeb664f83f3dcc7a701/src/frontend/views/peripheral.ts#L164
Issue Analytics
- State:
- Created 2 years ago
- Comments:8
Could you try out the latest (pre-release)
https://github.com/Marus/cortex-debug/releases
I have not implemented what I wanted as it is a bit more involved and takes time for testing.
Please close this if you find it working
ok, sorry, it looks like the cmake extension is writing now this stuff. I’m using some manual configuration, its annoying because I have turned off all automatic that I could find already. Content of the file was {“DebugSessionRunning”:false}
So not a debug-cortex problem now.