We help IT Professionals succeed at work.

executable for debug session in Visual Studio 2008

I made a few fortran functions, I call this functions from Excel 2007, and I would like to debug the DLL fortran file but I cannot find how to do that

I was checking that I need to find the option "executable for debug session" but I cannot find it

Is that the way to debug my fortran functions?? Where is that option?????

Is there another way to debug my fortran functions????
Comment
Watch Question

Most Valuable Expert 2012
Top Expert 2012

Commented:
This link says you should be able to debug fortran from within Visual Studio 2005/2008:  http://cache-www.intel.com/cd/00/00/40/59/405976_405976.pdf

Based on my experience with C and VB.NET, if you designed your fortran functions with Visual Studio, you could create an add-in within VSTO for Excel 2007 and include your function library.  You can then test the functions as well as debug them, from VSTO.  If you don't have VSTO, you can also review generating your DLL file using the Debug (as opposed to Release) option.  Look at your compile and/or debug options, to see where the switch is in your version of Visual Studio.  I have VS 2010, so the menus may be different.  However, I just right click on my project in the Solution Explorer and select Properties.  From there, I can set Compile and Debug options.  Also, check under Build->Configuration manager for debug versus release options.   As a result, you should have the ability to enter debug mode if there was an error with one of the functions.

You might consider browsing in this forum:  http://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/

Dave
Most Valuable Expert 2012
Top Expert 2012
Commented:
PS - here's a great link to Chip Pearson's website where he discusses creating DLLs, and I've followed this particular tip when I created my first function library.  Scroll down to the discussion on DEBUGGING THE NET PROJECT for details on how to setup a debugging environment for your functions.  It works on my VB.NET code, and I assume it will work for you with visual fortran, re: the first link I posted...

http://www.cpearson.com/excel/creatingnetfunctionlib.aspx

Dave