Saturday, March 31, 2012

VS2005: Debug - no symbols?

Hi all,
I'm trying to debug my application - my main page works correctly, in that I
can add break points etc, but I have a second page which is loaded when a
link is clicked on the main page.
When I add breakpoints to that page they change to a grey outline of a
circle (instead of the red dot) and a yellow warning icon is placed over the
top, the text reads:
"The breakpoint will not currently be hit. No symbols have been loaded for
this document."
I've tried searching online and I got one result but the conversation wasn't
easy to follow and it didn't help me. It mentioned something about .pdb
files but to be honest I cant find any of these or indeed the .dll for my
own app when its built.
Does anyone have any ideas what the problem might be? I've had this before
but often a rebuild or a closing of VS2005 and then reopening it would
resolve the problem - I've tried all of that and even a reboot and nothing
has so far resolved the problem.
Any help would be REALLY appreciated.
Regards
Robcheck your page, make sure for that page it is being built in debug mode.
that will (usually) add a .pdb file in the debug/bin folder
Regards,
Alvin Bruney
---
Shameless author plug
Excel Services for .NET is coming...
https://www.microsoft.com/MSPress/books/10933.aspx
OWC Black Book www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
"Rob Meade" <ku.shn.tsews.thbu@.edaem.bor> wrote in message
news:O37Q6ItwHHA.560@.TK2MSFTNGP03.phx.gbl...
> Hi all,
> I'm trying to debug my application - my main page works correctly, in that
> I can add break points etc, but I have a second page which is loaded when
> a link is clicked on the main page.
> When I add breakpoints to that page they change to a grey outline of a
> circle (instead of the red dot) and a yellow warning icon is placed over
> the top, the text reads:
> "The breakpoint will not currently be hit. No symbols have been loaded
> for this document."
> I've tried searching online and I got one result but the conversation
> wasn't easy to follow and it didn't help me. It mentioned something about
> .pdb files but to be honest I cant find any of these or indeed the .dll
> for my own app when its built.
> Does anyone have any ideas what the problem might be? I've had this
> before but often a rebuild or a closing of VS2005 and then reopening it
> would resolve the problem - I've tried all of that and even a reboot and
> nothing has so far resolved the problem.
> Any help would be REALLY appreciated.
> Regards
> Rob
>
"Alvin Bruney [MVP]" ...

> check your page, make sure for that page it is being built in debug mode.
> that will (usually) add a .pdb file in the debug/bin folder
Hi Alvin, thanks for the reply.
The whole project was being built in debug mode.
There seem to be quite a lot of people posting online about these problems -
I resolved mine by removing the "start page" information - if I choose
anything other than "Current Page" I am unable to debug pages other than the
one in the "Start Page" field...
Rob

0 comments:

Post a Comment