Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28991 Discussions

howto: stop recompile when debugger strarts

Terry_Gerald
Beginner
777 Views
Everytime I start a debug session - Intel Fortran 12recompiles the current project - actually it recompiles all projects within the current solution.


How do you stop it from doing this time-consuming compile when I start the debugger?
0 Kudos
5 Replies
Steven_L_Intel1
Employee
777 Views
Try this. Remove all the source files from your project and then re-add them. This is not the normal behavior, but I have seen it.
0 Kudos
Terry_Gerald
Beginner
777 Views

Didn't work.


It has been doing this since I upgraded to V12.

Every project I have created (about 20) since then, the debugger will trigger a recompile of all projects within the "solution".

My "solutions" typically have a one or more static or DLL libs along with a client project.

When I hit F5, all libs and the client are recompiled.

This really has become very time consuming now as some of my projects are very large.

0 Kudos
Steven_L_Intel1
Employee
777 Views
Hmm. Ok, try this. Open the folder with your .vfproj file in it. Do you see a file with the same name as the project file but with the file type .u2d? If not, in the folder window, select Tools > Options > View. Select "Show hidden files, folders and drives" and click OK. Now you should see it. Delete the .u2d file and reopen Visual Studio.

Are your source files on a network share?
0 Kudos
Terry_Gerald
Beginner
777 Views
I currently have a solution with two projects - same source files - so the projects are identical - just different project names.

1) I select the "build" option on the second project.

2) Both projects are compiled

3) I deleted the *.u2d file from each project's directory.

4) No breakpoints are set in either project.

5) I hit f5 - both projects are recompiled and the *.u3d files are created again within each project directory.

6) I hit F5 again - with no changes to either project source files - projects are recompiled again.


Summary: Test indicates that deleting th *.u2d file has no effect.



I am not using a network share.

0 Kudos
Steven_L_Intel1
Employee
777 Views
Can you attach a ZIP of the sources so that we can investigate? Might you have any circular module dependencies?
0 Kudos
Reply