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

Start the IDE Debugger from the command line

mike_desylva
Beginner
626 Views
I am attempting to debug a program that is started using a .bat file to configure environment variables and link logical units to specificfiles based on the data used for a particular run.
I would like to run the .bat file, and when it gets to the point of running the .exe, have it open a debug session in the IDE. Is there a way to do that?
0 Kudos
3 Replies
Steven_L_Intel1
Employee
626 Views
If you're using CVF, DFDEV.EXE. If Intel Visual Fortran, DEVENV.EXE. You may need to use an explicit path to get to the EXE.
0 Kudos
mike_desylva
Beginner
626 Views
So if the executable I want to debug is f.exe, what would my command look like? Would "DEVENV.EXE" be the full command or would I pass it my executable as an input? If I just use DEVENV.EXE to start the IDE, do I then have to start the debug session manually in the IDE?
Thanks.
Mike
0 Kudos
Steven_L_Intel1
Employee
626 Views
You can give the EXE as the argument on the command line, but the better choice is to give the solution (.sln) file, as this will load your solution ready to debug in the environment created by the .BAT. I determined that if you're running from a command prompt started by the Fortran "IA-32 Build Environment" shortcut, that just using DEVENV will work. Note that you may need to enclose the path to your .sln in quotes.
0 Kudos
Reply