numaru / vscode-ceedling-test-adapter

Ceedling Test Adapter for the VS Code Test Explorer
MIT License
37 stars 14 forks source link

Cannot debug ceedling program #50

Closed emptor8 closed 4 years ago

emptor8 commented 4 years ago

Hi there,

Thanks for the plugin - it's been great for running tests!

My problem is that I can't seem to get debugging to work.

When I try to debug, I get a launch: program 'D:\tdd_sandbox\build\test\out\' does not exist error.

In settings, I have set the following: Debug configuration to run during test debug: Ceedling Debug Ceedling Explorer: Project Path: . Ceedling Explorer: Shell Path: null

In launch.json, I have the following: image

My folder structure is as follows: image

Do you see what could possibly be wrong here?

emptor8 commented 4 years ago

I found the problems:

In my workspace configuration, I had: "settings": { "ceedlingExplorer.debugConfiguration": "ceedlingExplorer"

Which I had to fix by changing to: \"settings": { "ceedlingExplorer.debugTestExecutable": "ceedlingExplorer"

Also, I found I had to use the "Debug" button above the test functions themselves rather than Run->Start Debugging for things to work