microsoft/vscode-cmake-tools

VS_DEBUGGER_WORKING_DIRECTORY is not honoured by the generator

devshgraphicsprogramming opened this issue · 6 comments

Brief Issue Summary

The debugger and run-without-debugger (run in terminal) do not honour the working directory set for individual targets.

Expected:

Both debugger and run-without-debugger run my target from the specified (by VS_DEBUGGER_WORKING_DIRECTORY) working directory.

Apparent Behavior:

Debugger and Run-In-Terminal both attempt to run my target binaries from the root directory of the project as the working directory.

Platform and Versions

  • Operating System: Ubuntu 18.04
  • CMake Version: 3.15.3
  • VSCode Version: 1.33.0
  • CMake Tools Extension Version: 1.1.3
  • Compiler/Toolchain: GCC 7.3.0

I'm having the same issue.

Set "cwd": "${workspaceFolder}/build/", in my launch.json but when I press CTRL + F5 the project is started from the root of the workspace

This issue is now marked as 'stale-old' due to there being no activity on it for the past 720 days. Unless the 'stale-old' label is removed or the issue is commented on, this will be remain open for at least 14 days and then it may be closed. If you would like to make this issue exempt from getting stale, please add the 'stale-exempt' label.

Just encountered this bug as well, hoping for a fix.