Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Help with debugging code for an application page - Break point

  Asked By: Dennis    Date: Oct 19    Category: Sharepoint    Views: 2012

I am struggling with one thing which is very critical to do my project. I
started my project with Feature with application page from stsdev and I have
created aspx pages and in the layouts folder and a corresponding .cs file which
inherits from LayoutspageBase.

Things are working fine I can see my page working.

However now I am adding more codes and I should be able to debug so I am
attaching it to all w3wp process I can see and set my breakpoint under the
Onload(EventARgs e) of my cs file.
I made sure that in the web config For compilation debug='true' , I also set
Debug='true in the aspx page but I keep get that 'The page break can not be hit.
No symbols have been loaded for this document'.

What am I missing ? I would really appreciated your response , also post it if



5 Answers Found

Answer #1    Answered By: Gobinda Navalagi     Answered On: Oct 19

Where is the dll that is being compiled form the .cs file  being deployed, to the
bin directory or the GAC? If to the bin directory make sure that you put the
.pdb file in that directory also. The .PDB file contains the symbols that are
necessary for tracing. Also, make sure you are compiling the .cs as a debug
version and not a release version or you won't be able to step through the code.

If you are deploying to the GAC then it becomes more of a problem.

Answer #2    Answered By: Rose Silva     Answered On: Oct 19

It is deployed in the GAC. Both the dll and .PDb are also under my under my
project bin/debug folder. I use stsdev  to create the poject initially and I am
using DebugBuild when I try to step through. It is never hitting the break

Answer #3    Answered By: Maegan Ellison     Answered On: Oct 19

I assume you are using Visual Studio 2005 or earlier. It tends to have problems
finding the PDB when its in the project  but the .dll is in the GAC. Take a look
at the following BLOG entry and see if it doesn't fix your problem.


Answer #4    Answered By: Yahaira Shannon     Answered On: Oct 19

The article here helps a lot, however it has not still solved my problem From
the module window I see the Dll but under the symbol status it shows that no
Symbol added . So I right clicked at the dll and chose load symbol and I give it
the pdb file  under my debug folder  and it says the Symbol file .PDb does not
match the module. I think somewhere in the link I read that someone has exactly
the same message.

Answer #5    Answered By: Doris Leach     Answered On: Oct 19

I finally got it resolved. I think the issue was with the tool I am
using stsedv to create the dll . it does not create the PDB file  with
DebugInstall which I use for creating the dll to be loaded  in the Assembly but
when I use DebugBuild for debugging  the first dll and the pdb file it created
will not match the one which later got created with DebugInstall so they don't
match. So what I did is I copied the dll created with DebugBuild and place it in
the assemly and the pdb file in my debug folder  got loaded automatically.