I recall there was an option under the Debug menu of Visual Studio to let you debug an existing program, but I cannot find the option now. Click the Debug menu, you can see there is an option to debug an attached process.

This is not what I want because the program has not be started. The Debug/Other Debug Targets/Debug Installed App Package is also not the one I want. In fact, to debug an existing program, you need to click the File/Open/Project/Solution and select the .exe file you want to run.(Don’t click File/Open/File, otherwise the .exe file will not be shown for you.)

Yes, now a single executable is considered as a project here. You can specify the arguments and the working directory for the executable in the Project/exefilename Properties option. After doing the settings, you can simply click the “Start” button to run and debug the program. If the program has associated source code, you can click the “Pause” button to pause the execution of the program and stop at somewhere in the source code.