- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am porting a number of applications to the PC from a DEC Alpha, and most are wrapped by a script of some sort (mostly DCL COM files, but some unix scripts). On the PC the scripts will be re-written in perl or maybe simple *.bat, but will still wrap the application. I want to use the CVF debugger, but I need the debugger to fire the script (which runs the debug exe) because some of these scripts do significant set-up activity, and act as "glue" transferring data between applications.
I am working with a small sample program wrapped by a *.bat. My first attempt to do this was to modify the project Debug settings to use Cmd.exe as the executable for the debug session, specifying the *.bat as the argument. This results in the execution of the *.bat, which does runs the application debug exe, but the environment doesn't catch breakpoints in the application.
Can anybody suggest an alternative approach? Is there a facility for starting the code outside the environment using the script, and then attaching the debugger to the running exe? Or (preferably) is there a way to run the script from within the environment, while specifying to the environment the exe to debug? Thanks for any help, Matt
I am working with a small sample program wrapped by a *.bat. My first attempt to do this was to modify the project Debug settings to use Cmd.exe as the executable for the debug session, specifying the *.bat as the argument. This results in the execution of the *.bat, which does runs the application debug exe, but the environment doesn't catch breakpoints in the application.
Can anybody suggest an alternative approach? Is there a facility for starting the code outside the environment using the script, and then attaching the debugger to the running exe? Or (preferably) is there a way to run the script from within the environment, while specifying to the environment the exe to debug? Thanks for any help, Matt
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have your .BAT file invoke "DFDEV.EXE yourworkspace.DSW" - this will load your workspace with the environment set up and you can start the program in the debugger. You'll need to start from a "Fortran Command Prompt" window.
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve, Thank you, thats exactly what I needed. You've saved me a lot of time.
Matt
Matt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This will be helpful for me too, Steve. Thanks indeed!
Tom
Tom

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