Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29273 Обсуждение

Start the IDE Debugger from the command line

mike_desylva
Начинающий
628Просмотр.
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 баллов
3 Ответы
Steven_L_Intel1
Сотрудник
628Просмотр.
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.
mike_desylva
Начинающий
628Просмотр.
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
Steven_L_Intel1
Сотрудник
628Просмотр.
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.
Ответить