numaru / vscode-ceedling-test-adapter

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

unable to open test file (Error: file not found) while debugging, but the test runs and terminates anyway #34

Closed UG-Steven closed 5 years ago

UG-Steven commented 5 years ago

My tests run fine when I run them normally. When I debug I get this error even though the terminal still shows test output. Interestingly enough, I can set breakpoints, it will wait at the breakpoint and I can tell it to continue but I can't see what line the debugger is on. Every time I click on the topmost line in the call stack, the error disappears and instantly reappears.

The location it is trying to load the test file from is where it used to be, but I move the whole ceedling project into another folder when I started using visual code. But I can't seem to figure out why it is trying to read the source test file from this location. I used the debugger configuration from here and I only changed the debugger path. If I mess around with the other settings there the process stops with an error much sooner.

Here is what it looks like when I try to debug

numaru commented 5 years ago

It looks like some of the binaries still contain path to old src directory in their debug symbols. Running a ceedling clean in the moved project should fix the issue.