Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

attaching to debugger

michael_allan
Beginner
540 Views
Dear Steve Lionel
I just switched from CVF 6.6 to Intel Fortran 9.0.028/MS
Developer Studio and have the following trivial problem:
I opened the Developer Studio, opened my Fortran/C++ mixed
language project (now called "Solution"?), succesfully
built the debug configuration, and attempt to debug it by
clicking on Debug/Start. But I obtain the message "No
Symbolic Information, 'iexplore.exe' does not contain
debugging information ... click OK to debug anyway". When
I click OK, the debuger launches the MS Internet Explorer.
I remember that when I clicked Debug/Start for the very
first time, it showed a window offering to click on "MS
Internet Explorer" (why?) and I unwisely clicked on it.
Now the debugger somehow assumes that "MS Internet
Explorer" is the default program to debug. But how do I
reverse it? I long tried to look in menus and Help, but
did not find a way. Closing Developer Studio and starting
it again does not do it.
When I first launch my program independently, then return
to the Developer Studio and click Debug/Processes and
attach my already running program, then I can debug it.
But this is not convenient.
How can I convince the Debugger that I want to debug my
own, currently opened "Solution" and not MS Internet
Explorer?
Thanks
Michael Allan
0 Kudos
2 Replies
Steven_L_Intel1
Employee
540 Views
Haven't seen that one before.

Similarly to CVF, the path to the executable to run/debug is specified on the "Debug" property page of the executable project. The "Command" field should contain the value $(TargetPath) - this is a macro whose value is taken from the Linker output file property.

Make sure that the C or Fortran project that creates the EXE is set as the "startup project" (right click on project, Set as Startup Project.) This tells VS which project to run when you start in the debugger.
0 Kudos
michael_allan
Beginner
540 Views
Dear Steve,
thanks for the prompt help!
this is what I had:
ELS_Win Property Pages/Config Properties/Debugging/Command:
c:11-MichaelFortranELS_Win_Intel$(OUTDIR)ELS_Win.exe
which is completely wrong (how did it get there?)
I changed it to $(TargetPath) as you wrote - it is OK
the second problem:
Property Pages/Common Properties/Startup Project had in it:
Single Startup Project: ELS_Win_lib
which appears to be wrong. I have two projects in the solution:

ELS_Win (the fortran part, primary)
ELS_Win_lib (the C++ part, secondary)

I changed it to: Single Startup Project: ELS_Win
now it works!!
Michael
0 Kudos
Reply