Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
47 Views

How is to specify debug target?

I would like to debug programs written in visual studio. However, whenever I click on start debugging it says "Visual Studio cannot debug because debug target has not been set". I tried several things, but no luck. Can someone post detailed instructions. BTW, I'm using "Intel Visual Fortran Composer XE2013 with Microsoft Visual Studio"

0 Kudos
7 Replies
Highlighted
Beginner
47 Views

Hello again Suresh

I think your problem isn't related with intel fortran itself, but with learning to use Visual Studio...

Are you sure that you can at least COMPILE your program for DEBUG? I mean, BEFORE trying to execute it...
If there are errors that prevent the compilation, the executable will not be created and the debug session will not start.

Eduardo.

0 Kudos
Highlighted
Beginner
47 Views

hello Eduardo,

yes i have compiled the program with no errors. i was able to run from command. You are right it is all about learning how to use visual studio. i truly appreciate some instructions on this because documentation is not that clear.

suresh

0 Kudos
Highlighted
Beginner
47 Views

Yes I can compile without errors. Btw, I can run it from command line. when I'm developing apps in visuall studio I rather stay within visual studio (debug) and make sure it works. 

Please advice on steps on how to debug the program within visual studio

0 Kudos
Highlighted
New Contributor I
47 Views

If you are compiling an .EXE, make sure you have selected the DEBUG configuration. The RELEASE configuration contains no debug info.

If you are compiling and debugging a library (.LIB or .DLL), you have to specify an executable that, when started, calls your library and your library must be the DEBUG configuration. In this case, It may also help if your test program is also compiled in the DEBUG configuration too.

0 Kudos
Highlighted
47 Views

When you say you are "compiling", exactly what are you doing? Building an EXE has two steps: compiling the sources and linking the executable. If you select Build > Build Configuration, it should do all this for you.

0 Kudos
Highlighted
Beginner
47 Views

I created a new Fortran Project with just a simple Main program. 

In VS 2008 I do: Build>Build Solution, everything compiles and links OK.

When I do Debug>Start Debugging, or hit F5, or click on the green triangle, I get the message: "Visual Studio cannot debug because debug target has not been specified

What am I missing?

 

0 Kudos
Highlighted
47 Views

Please ask in one thread only. See https://software.intel.com/en-us/forums/topic/287867

0 Kudos