Multimobile Development: Building Applications for any Smartphone
can't debug C#: "The breakpoint will not currently be hit. No symbols have been loaded for this document"
Messages   Related Types
This message was discovered on microsoft.public.vsnet.debugging.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

~dr.sci-fi
env: winXP, VS2003, office2003

hi all,

i'm having strange problem while trying to debug my C# application. All the
breakpoints in the code turn to "?" when i start debugging, and the tooltip
on the breakpoint says: "The breakpoint will not currently be hit. No
symbols have been loaded for this document".

the output window also shows "No symbols loaded" message next to my EXE
file.
i verified, i'm in debug bulid mode and "Generate Debug Info" option is true
for proect settings.

i even tried to reinstall VS2003 on my machine, but no luck.

is it a bug or what? can some one help how to fix it?

TIA

- sci

Reply to this message...
Vote that this is a GOOD answer...
 
Really good experience at the Apple Store
MonoDroid – looking *awesome*
 
    
one
Normally this mean the logical path(s) of the program will not hit that breakpoint. If this is the case, try putting the breakpoint right at the start of the program. e.g. Main()

HTH

----- ~dr.sci-fi wrote: -----

env: winXP, VS2003, office2003

hi all,

i'm having strange problem while trying to debug my C# application. All the
breakpoints in the code turn to "?" when i start debugging, and the tooltip
on the breakpoint says: "The breakpoint will not currently be hit. No
symbols have been loaded for this document".

the output window also shows "No symbols loaded" message next to my EXE
file.
i verified, i'm in debug bulid mode and "Generate Debug Info" option is true
for proect settings.

i even tried to reinstall VS2003 on my machine, but no luck.

is it a bug or what? can some one help how to fix it?

TIA

- sci

Reply to this message...
Vote that this is a GOOD answer...
 
First volume of Multimobile Development nearly ready to go to press
A mention on Developing for the iPhone and Android: The pros and cons
 
    
Robert Gruen [MSFT] (VIP)
sci,

It sounds like the symbols you have are not lining up with the binaries
you're generating. Do the following:

1. Verify that you are in debug mode and not release mode.
2. Verify that the timestamp of the .pdb file is the same as the .dll or
.exe that you're generating. If they are not, remove all of the binaries
and recompile your entire solution.
3. If the additional assemblies you are trying to debug are not part of
your solution (i.e. other projects), go under the properties for the
solution and be sure to include the "Debug Source Files" and "Debug
Symbol Files" locations of the additional assemblies you're trying to debug.

Thanks! Robert Gruen
Microsoft, VB.NET

This posting is provided "AS IS", with no warranties, and confers no rights.

--------------------
#From: "~dr.sci-fi" <Click here to reveal e-mail address>
#Subject: can't debug C#: "The breakpoint will not currently be hit. No
symbols have been loaded for this document"
#Date: Sat, 3 Apr 2004 05:51:29 -0800
#Lines: 23
#X-Priority: 3
#X-MSMail-Priority: Normal
#X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
#X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
#Message-ID: <Click here to reveal e-mail address>
#Newsgroups:
microsoft.public.vsnet.debugging,microsoft.public.vstudio.general
#NNTP-Posting-Host: 203.89.132.108
#Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12
.phx.gbl
#Xref: cpmsftngxa06.phx.gbl microsoft.public.vstudio.general:6058
microsoft.public.vsnet.debugging:5295
#X-Tomcat-NG: microsoft.public.vsnet.debugging
#
#env: winXP, VS2003, office2003
#
#hi all,
#
#i'm having strange problem while trying to debug my C# application. All the
#breakpoints in the code turn to "?" when i start debugging, and the tooltip
#on the breakpoint says: "The breakpoint will not currently be hit. No
#symbols have been loaded for this document".
#
#the output window also shows "No symbols loaded" message next to my EXE
#file.
#i verified, i'm in debug bulid mode and "Generate Debug Info" option is
true
#for proect settings.
#
#i even tried to reinstall VS2003 on my machine, but no luck.
#
#is it a bug or what? can some one help how to fix it?
#
#TIA
#
#- sci
#
#
#

Reply to this message...
Vote that this is a GOOD answer...
 
 
    
JasonG
That worked for me - Thank you.

---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.
Reply to this message...
Vote that this is a GOOD answer...
 
First chapters of Multimobile Development book now available on Apress Alpha program
iPad
 
    
lj
i met the same problem.And it likes more serious.The visual studio i used is chinese version 1.0.The situation appears just in some parts of my code when trying to debug the application.While the other files in the same project can break successfully.i doubt it is a bug.
Reply to this message...
Vote that this is a GOOD answer...
 
New book project – Multimobile Development: Building Applications for any Smartphone
Dive into HTML5
 
    
Anthony Feeney
Select your project and select menu item "Properties" under "Project".

Under "Configuration Properties" select "Build".
Ensure that for your Debug configuration that "Generate Debugging Information" is set to True.

--------------------------------
From: Anthony Feeney
Reply to this message...
Vote that this is a GOOD answer...
 
 
    
Alex Pecoraro
Check out this thread. This solution worked for me.

http://www.wilsondotnet.com/Tips/ViewPosts.aspx?Thread=6
Reply to this message...
Vote that this is a GOOD answer...
 
Steve Jobs’ thoughtful/thought provoking Thoughts on Flash…
Handy list of countries in CSV format
 
 




Ad
BootFX
Reliable and powerful .NET application framework.
iOS, Android and Windows Phone Development Training and Consultancy
Hosted by RackSRV Communications
 
Multimobile Development: Building Applications for any Smartphone
Copyright © AMX Software Ltd 2008-2010. Portions copyright © Matthew Baxter-Reynolds 2001-2010. All rights reserved.
Contact Us - Terms of Use - Privacy Policy - 4.0.30129.1734