- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page