- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
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?
Ссылка скопирована
3 Ответы
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
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.
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
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
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
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.

Ответить
Параметры темы
- Подписка на RSS-канал
- Отметить тему как новую
- Отметить тему как прочитанную
- Выполнить отслеживание данной Тема для текущего пользователя
- Закладка
- Подписаться
- Страница в формате печати