- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a Makefile that I use to build my application in both Windows and Linux. All complex project- and platform-related stuff are already dealt in this Makefile.Today, I use a common editor to code and call GNU make from command line. Now I am considering to move to Microsoft Visual Studio 2010. I already use MSVS2010 when debuging using a not-configured Intel Visual Fortran Empty Project with my files.I don't want to duplicate my work configuring a new Visual Studio project and I want to use the Makefile instead.Is there a way to do it with MSVS2010? Or, is there any other better way to keep the configuration at one place "usable" from Windows and Linux?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here's how to debug a Fortran application built outside Visual Studio:
- Compile and link the sources with the /debug option
- In Visual Studio, create a new empty Fortran Console Application project
- Right click on the project and select Properties. On the Debugging property page, replace the value for Command with the full path of the executable file. Specify values for Command Arguments and Working Directory if you want.
- Add to the project the source file you want to set a breakpoint in, such as the main program. Open the source file and click in the left margin where you want the breakpoint set. Repeat as required.
- Start debugging (F5 or Debug > Start Debugging). If you get a warning that the project needs to be rebuilt, dismiss it.
You can now save this project/solution and use it to debug the program in the future. It will preserve the breakpoints you have set.

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