I am new to programming. I am using ubuntu and .deb for installing vs code. When I try to debug a program(hello world in my case) it gives me error, that launch: program '/home/(myusername)/Projects/helloworld/build/Debug/outDebug' does not exist.
My Temporary Workaround. I go to launch.json file, in program field, i paste location for a compiled executable file.
Finally, I am looking for a permanent fix to my issue.

After a lot of stuff, I learned that using "${workspaceFolder}/compiledfilename" in program field is the best and shortest way. You manually lead to the like home/user/desktop/project/main but that can is long and small stuff can cause errors.
launch.json file pic Note: program is typically 4th entry under configuration in launch.json file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With