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

Debugging - "breakpoint will currently not be hit. invalid file line"

rafadix08
Beginner
2,171 Views
I am having this message when I include a break point in my code.

I have tried some recommendations I found on the web like deleting the solutions file, etc...

Does anyone know how to fix this?

Thanks,
Rafael
0 Kudos
11 Replies
rafadix08
Beginner
2,171 Views
I think this could be additional information.

I am copying my build file and the output I get when I run the program in debug mode.

Build file:

Deleting intermediate files and output files for project 'Estimation_SMM', configuration 'Debug|Win32'.
Compiling with Intel Visual Fortran 11.0.075 [IA-32]...
ifort /nologo /debug:full /Od /gen-interfaces /warn:interfaces /module:"Debug" /object:"Debug" /traceback /check:bounds /libs:static /threads /dbglibs /c /Qvc8 /Qlocation,link,"C:Program FilesMicrosoft Visual Studio 8VCbin" "C:Documents and SettingsRafael Dix CarneiroMy DocumentsThesisNew Fortran CodesEstimationEstimation Weight IdentityGlobal_Data.F90"
ifort /nologo /debug:full /Od /gen-interfaces /warn:interfaces /module:"Debug" /object:"Debug" /traceback /check:bounds /libs:static /threads /dbglibs /c /Qvc8 /Qlocation,link,"C:Program FilesMicrosoft Visual Studio 8VCbin" "C:Documents and SettingsRafael Dix CarneiroMy DocumentsThesisNew Fortran CodesEstimationEstimation Weight Identityminim.f90"
ifort /nologo /debug:full /Od /gen-interfaces /warn:interfaces /module:"Debug" /object:"Debug" /traceback /check:bounds /libs:static /threads /dbglibs /c /Qvc8 /Qlocation,link,"C:Program FilesMicrosoft Visual Studio 8VCbin" "C:Documents and SettingsRafael Dix CarneiroMy DocumentsThesisNew Fortran CodesEstimationEstimation Weight IdentityEmax_MOD.F90"
ifort /nologo /debug:full /Od /gen-interfaces /warn:interfaces /module:"Debug" /object:"Debug" /traceback /check:bounds /libs:static /threads /dbglibs /c /Qvc8 /Qlocation,link,"C:Program FilesMicrosoft Visual Studio 8VCbin" "C:Documents and SettingsRafael Dix CarneiroMy DocumentsThesisNew Fortran CodesEstimationEstimation Weight IdentityLoss_Function_MOD.F90"
ifort /nologo /debug:full /Od /gen-interfaces /warn:interfaces /module:"Debug" /object:"Debug" /traceback /check:bounds /libs:static /threads /dbglibs /c /Qvc8 /Qlocation,link,"C:Program FilesMicrosoft Visual Studio 8VCbin" "C:Documents and SettingsRafael Dix CarneiroMy DocumentsThesisNew Fortran CodesEstimationEstimation Weight IdentityMain.F90"
Linking...
Link /OUT:"DebugEstimation_SMM.exe" /INCREMENTAL:NO /NOLOGO /MANIFEST /MANIFESTFILE:"C:Documents and SettingsRafael Dix CarneiroMy DocumentsVisual Studio 2005ProjectsEstimation_SMMEstimation_SMMdebugestimation_smm.exe.intermediate.manifest" /DEBUG /PDB:"C:Documents and SettingsRafael Dix CarneiroMy DocumentsVisual Studio 2005ProjectsEstimation_SMMEstimation_SMMdebugestimation_smm.pdb" /SUBSYSTEM:CONSOLE /IMPLIB:"C:Documents and SettingsRafael Dix CarneiroMy DocumentsVisual Studio 2005ProjectsEstimation_SMMEstimation_SMMdebugestimation_smm.lib" "DebugGlobal_Data.obj" "Debugminim.obj" "DebugEmax_MOD.obj" "DebugLoss_Function_MOD.obj" "DebugMain.obj"
Link: executing 'link'

Embedding manifest...
mt.exe /nologo /outputresource:"C:Documents and SettingsRafael Dix CarneiroMy DocumentsVisual Studio 2005ProjectsEstimation_SMMEstimation_SMMdebugestimation_smm.exe;#1" /manifest "C:Documents and SettingsRafael Dix CarneiroMy DocumentsVisual Studio 2005ProjectsEstimation_SMMEstimation_SMMdebugestimation_smm.exe.intermediate.manifest"

Estimation_SMM - 0 error(s), 0 warning(s)


Output after running on debug mode:

'estimation_smm.exe': Loaded 'C:Documents and SettingsRafael Dix CarneiroMy DocumentsVisual Studio 2005ProjectsEstimation_SMMEstimation_SMMDebugestimation_smm.exe', Symbols loaded.
'estimation_smm.exe': Loaded 'C:WINDOWSsystem32ntdll.dll', No symbols loaded.
'estimation_smm.exe': Loaded 'C:WINDOWSsystem32kernel32.dll', No symbols loaded.
'estimation_smm.exe': Loaded 'C:Program FilesIntelCompiler11.0�75fortranlibia32libiomp5md.dll', Binary was not built with debug information.
'estimation_smm.exe': Loaded 'C:WINDOWSsystem32imagehlp.dll', No symbols loaded.
'estimation_smm.exe': Loaded 'C:WINDOWSsystem32msvcrt.dll', No symbols loaded.
First-chance exception at 0x7c812afb in estimation_smm.exe: 0xA1A01DB1: 0xa1a01db1.
The program '[2904] estimation_smm.exe: Native' has exited with code 0 (0x0).
0 Kudos
TimP
Honored Contributor III
2,171 Views
Quoting - rafadix08

'estimation_smm.exe': Loaded 'C:Program FilesIntelCompiler11.0�75fortranlibia32libiomp5md.dll', Binary was not built with debug information.
This is strange. It is the debug version of the library, and there is a companion .pdb, at least in the current version. If your version is missing some debug facilities (linux versions had that problem at that time), maybe you could consider updating.
0 Kudos
rafadix08
Beginner
2,171 Views
Quoting - tim18
This is strange. It is the debug version of the library, and there is a companion .pdb, at least in the current version. If your version is missing some debug facilities (linux versions had that problem at that time), maybe you could consider updating.
I am able to include breakpoints and debug other programs. Actually, that problem started when I created a new version of a project and started to debug it. I can still debug the older version, include breakpoints, etc... But in the new version I have this problem of "breakpoint will currently not be hit. invalid file line".
I tried lots of things with this new version, for instance delete the solution file, the pdb file, delete the project and create it again, etc... The problem persisted after each one of these actions.
If this is relavant, I am using Microsoft Visual Studio 8.
0 Kudos
Steven_L_Intel1
Employee
2,171 Views
Are you running the same EXE that was built? What does it say for "Command" under the project property Debugging > Command?
0 Kudos
rafadix08
Beginner
2,171 Views
Are you running the same EXE that was built? What does it say for "Command" under the project property Debugging > Command?

Hi Steve,

It says $(TargetPath)

I am doing everything as usual: build the application using Visual Studio 8 (debug mode), insert break points and click on the play icon (start debugging). Right after I click at the play icon (start debugging) the red ball for the breaking point location becomes hollow with the message "breakpoint will currently not be hit. invalid file line".

Please let me know if you need further info.

Thanks a lot,
Rafael
0 Kudos
Steven_L_Intel1
Employee
2,171 Views
Delete the entire Debug subfolder and rebuild. The PDB may have been corrupted.
0 Kudos
rafadix08
Beginner
2,171 Views
Delete the entire Debug subfolder and rebuild. The PDB may have been corrupted.

I have already tried that, many times. The problem persists.
0 Kudos
Les_Neilson
Valued Contributor II
2,171 Views
It's a long shot but ...
If in VS youdo Window->Windows this will give a popup showing the name and path of each file currently opened. Check that the file you have open (where you want to put the breakpoints) is the one that is compiled with the project.
In the solution explorer window highlight the filename and press F4 will show the full path of the file.

Les
0 Kudos
rafadix08
Beginner
2,171 Views
Quoting - Les Neilson
It's a long shot but ...
If in VS youdo Window->Windows this will give a popup showing the name and path of each file currently opened. Check that the file you have open (where you want to put the breakpoints) is the one that is compiled with the project.
In the solution explorer window highlight the filename and press F4 will show the full path of the file.

Les

Les, thanks for the reply. The paths are fine...
I had already checked that in the Build file.
0 Kudos
rafadix08
Beginner
2,171 Views
Quoting - rafadix08

Les, thanks for the reply. The paths are fine...
I had already checked that in the Build file.

What is curious is that some breakpoints work and some just don't.
Any other suggestion?
I already tried to unistall and install Fortran+Visual Studio and still get the same error. Maybe there is some file that was corrupted and is not being erased by uninstalling them?
0 Kudos
Steven_L_Intel1
Employee
2,171 Views
Seems unlikely to me that it is an installation issue. It could be an error in source line correlation information from the compiler. Can you attach a zip of the project with instructions on how to reproduce the problem?
0 Kudos
Reply