Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visual c++ symbols loading error

Status
Not open for further replies.

browneyez12323

Technical User
Mar 28, 2009
1
CA
Hi,

I am trying to debug a project that I had created. Basically, my problem is that once i run the debugger, my breakpoint does not get hit. The breakpoint gets bypassed. and When I put my mouse over the breakpoint I get the following error message:

Code:
The breakpoint will not currently by hit.  No symbols have been loaded for this document.

Initially I checked the modules to see if the symbols were loaded for that and I noticed that for the dll files ntdll.dll and kernel32.dll the symbols were not loaded. However, the symbols were loaded for my project exe file.

In order to fix this problem and I did some google research and found out that I needed to add the following script:

Code:
.sympath c:\mypdbs;srv*c:\msftpdbs*[URL unfurl="true"]http://msdl.microsoft.com/download/symbols[/URL]

Now after doing, this eventhough the symbols were loaded for the two dll files, the breakpoint is still getting bypassed. Can anyone please explain what is the problem? I would highly appreciate it. Thanks!

P.S: I am running a visual studio 2005 IDE

Regards..
 
Does it work if you move the breakpoint up higher and then step line by line until you reach the place where you wanted to put your breakpoint?
 
1) are you running the debug or release version of the project
2) do you have a mix of CR and CRLF as line terminations. If you do, copy all the text into Word and copy it out from word back into visual Studio.
3) do you have comments ending in \. This is a feature of MS Visual studio - it takes the next line as comment but does not syntax highlight it as a comment
4) Have debug symbols been switched off?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top