Reputation: 23
here is my program
program hello
print *, "Hello World!"
end program hello
and it says to me
visual studio cannot debug because a debug target has not been specified
Upvotes: 2
Views: 2908
Reputation: 7267
The way this normally happens is that you chose the incorrect project type - for example, a library instead of executable. If your project is properly building an EXE and you still get this error, right click on the project, select Properties. Then on the Debugging property page set the Command
property to $(TargetPath)
. Otherwise, create a new project of the correct type (for example, Console Application
Upvotes: 2