You can start debugging without compiling the files first in which case Visual Studio will attempt to compile the startup file.
Alternatively, you can compile the files first and specify any debug settings such as a start program, a working directory or any command line arguments.
Make sure that you compile any source files that are part of the debug session in advance. This is because Visual Studio does not compile them automatically.
You can debug any binary files without compiling them first.
To specify debug settings:
For multi-source applications, set this to the program that runs.
Visual Studio stores any specific debug configuration settings in the launch.vs.json file inside the .vs subfolder.
You can start debugging without specifying any properties first or compiling. If no .idy file is available inside the source files folder, Visual Studio searches for .idy files in the locations specified Tools > Options > Micro Focus Tools > Standalone Editing > Program Symbols (.IDY).
To specify that a file is the startup file:
You can select a COBOL file or an .int, .gnt, .exe or an .obj file as the startup item.
If specified, when debugging Visual Studio starts the file specified as a Start Program in the Debug Options dialog box (Debug and Launch Settings), over the one set as a startup file.
To start debugging a file:
Visual Studio checks the date of the compiled program. If it is older than the source code or if it does not exist, Visual Studio compiles the program first.
If Visual Studio does not find the compiled program, it prompts you to locate it.