Closed gcopoix closed 6 months ago
Thank you for the prompt reply! :heart_eyes:
I've just tried it out but it doesn't work on my end.
After clicking Run > Start Debugging
I got this
Where I selected the C++ Debugger.
After that this error happened:
Just tested on a clean machine:
code <path/to/simulator.code-workspace
)cmake::Configure
, if VSCode asks for kits select unspecified
, cmake will select the default native gcc)Run > Start Debugging
(or press F5)May be it makes it more convenient if cmake.configureOnOpen
is set to true
in the workspace file, could you please give it a try?
And: It may be a good idea if problems still remain to try with a deleted build folder, especially if basic cmake settings have been changed (or if you have some 'old' build configuration from an earlier version) Another idea: Do you have a .vscode folder with some (additional) settings? This folder can be deleted.
Getting closer! After removing the build, bin, and the .vscode folders, adding cmake.configureOnOpen: true
and starting with simulator.code-workspace
it was configured, on F5 it was compiled, but finally it failed because bin/main is not found:
However bin/main exists.
I cloned the repo in another directory, started everything from the beginning, and met the same problem:
Then I checked the vscode doc, and it says:
So, I am wondering if full path means it should have the env variable workspaceFolder: "program": "${workspaceFolder}/bin/main"
It's working well now! Thank you very much! :tada: