Debugging rostest in vscode

asked 2021-03-22 03:12:58 -0500

fjp gravatar image

Was someone able to run a *.test rostest file in Visual Studio Code for debugging purposes?

I know only that it is possible to have debug configs attach to a process or use a standard launch file. Explained here

When I try to use a *.test file as absolute target path in my vscode launch.json, I get an error when trying to run the test:

Launch request requires an absolute path as target

Attaching to a process might work, but I guess if there is enough time to attach manually to the running test process before the test ends, which might be finished fast.

There is an open issue in the vscode ros plugin, which should address debugging rostests.

edit retag flag offensive close merge delete