- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The current project I'm working on consists of a main Fortran project (call it ProjA) that when compiles generates a *.DLL that is called from a main C++ project (call it ProjD) *.EXE.
This Fortran project (call it ProjA) depends on the linking to two static *.LIB files, one of which is compiled in Fortran (call it ProjB) and the other which is compiled in C++ (call it ProjC). The two *.LIB files are included directly in main Fortran project.
The entire path to ProjD *.EXE and the *.EXE name are both provided in the ProjA solution (Configuration Properties -> Debugging -> Command).
When I go to Debug ProjA, breakpoints I've set in ProjA (which is set at the first assignment operator; VAR1=0 !nitialization) are unable to be reached (red dot icon turns transparent and there's a triangular '!' sign at the corner) and the execution of the program reaches a point in ProjA where an error flag is set (one that I coded in ProjA) and an error message window pops up (one that I coded in ProjA) and the program stops execution as intended.
I am unable to understand why I cannot go into the source within ProjA to see what is going on. No matter where I put the breakpoints none of them work. This is very frustrating. It is obvious that the source in ProjA is executing, otherwise the error message window in ProjA would not pop up. I need to be able to see why this error message is being generated with the input being passed to it from the C++ *.EXE and to do that I need to be able to walk through the source.
Does anyone have any suggestions or ideas as to what is wrong?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I know this is probably a simple solution. I'm getting the error: "The breakpoint will not currently be hit. No symbols have been loaded for this document". Is there some sort of file I need to create for the debug to work properly??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
check your compile type: Build menu are you building as debug? and generating a symbols table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am definitely building in Debug mode. Where do I check to see if I'm generating a symbols table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Under Configuration Properties -> Fortran -> Debugging:
(1) Debug Information Format is set to 'Full (/debug:full)'
(2) Enable Parallel Debug Checks is set to 'No'
Under Configuration Properties -> Linker -> Debugging:
(1) Generate Debug Info is set to 'Yes (/DEBUG)
(2) a *.pdb file is being generated
(3) Generate Map File is set to 'No'
(4) Map Exports is set to 'No'
Do I need to generate a map file for this sort of debug to work properly??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
TOPIC SOLVED
UPDATE: I can now Debug ProjA. I set the Linker properties to (1) generate a map file (2) set the mapping of exports to 'Yes'. Now I can debug properly with the C++ *.EXE which calls ProjA *.DLL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
From the FWIW department one tip which you may not know which will help you avoid having to copy files hither and yonder when recompiling and debugging...for a given solution with several projects, set the 'Output Dorectory' to
$(SolutionDir)$(ConfigurationName) for each of the projects
FWIW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
UPDATE: After making some minor modifications to the source within ProjA I am back to where I started this morning, with the "The breakpoint will not currently be hit. No symbols have been loaded for this document" for all the breakpoints...
What is going on? Can anyone please guide me as to what will permenantly allow me to debug this project? The fact that I toggled some options on and it worked then now it doesn't work again with the same options enabled is distressing...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A common cause of this problem is that the DLL being loaded is not the one that you built for debugging.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
TOPIC RESOLVED
Update: OK, I got the debug session working again. I needed to copy over the modified (rebuilt) *.LIB, *.DLL and mapfile files over to the ProjD ...\Debug folder.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
not sure why my prior comment didn't get posted? i offered advice to have ALL build files sent to one directory so you don't need to copy things. use $(SolutionDir)$(ConfigurationName) for your output directory for each of the projects in your solution.
Then all the dlls for a given $(ConfigurationName) are stored in the same directory. Copying of dlls not required! now if this posts up double, guess i get double points! :-)

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