error - "Unable to start debugging. Specified argument was out of the range of valid values. Parameter name: ExePath"

nat 6 Reputation points
2022-07-18T19:29:25.553+00:00

I am using visual studio 2022, trying to debug a CMake project on a remote linux computer via rsync. The setup worked, I left for the weekend, now it's not working. Intellisense is also not updating at all. It just sits there without ever updating the CMake cache.

Example of the error I get when trying to build and debug an executable.
221988-image.png

Example of intellisense not updating when configuring CMake cache.
221963-image.png

Developer technologies Visual Studio Debugging
Developer technologies C++
{count} vote

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2022-07-19T04:39:14.647+00:00

    Hi @nat ,

    Welcome to Microsoft Q&A!

    Does it happen if you close VS and reopen it?

    Please close all running VS instances and update your VS 2022 to the latest version through Visual Studio Installer.

    Then, delete the hidden .vs, bin and obj folders in the project folder and build again.

    Sincerely,
    Anna
    *
    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.