Stepping into handler class

Z

Zeba

Hi guys,

This is related to one of my previous posts, but I felt I deserved a
new post.

Is there any way to debug my HttpHandler class ? From what I
understand, the handler class is compiled and it is the assembly file
( .dll file ) which is used for the handling. I have not actually/
manually compiled the handler class or anything, so is it possible
that I can actually step into my code and see them in execution ?

Thanks !
 
C

Champika Nirosh

You cannot debug the default ones... since you don't have the code and also
they run on IIS which doesnot support debugging on it.. but if you have
written some custom handlers then yes you may find a workaround to debug
them

Nirosh.
 
G

Guest

If your handler class project is in your solution and you run in debug mode,
you should be able to set a breakpoint in the handler code and debug it.
Peter
 
Z

Zeba

It is a custom handler that I have and its placed in my App_Code\Web\
folder but the debugger never steps into it.It firefox goes to the
redirected page (The AppHandler class was used for url rewriting)
 
L

Leon Lambert

Sorry i don't have an answer to you specific question but have a general
comment. If you file in question was auto-generated from a tool is may
have statements in it to prevent debugging for example.
[System.Diagnostics.DebuggerStepThrough()]
In this case i have tweaked my project after generating the file(s) once
to not generate them any more so they don't replace an existing one.
Then hand edited the file to comment out the debugging statements.
This has happened to me when using the xsd.exe to create strongly typed
datasets. I sometime like to debug in and see what is going one. So i do
as i stated above.

Hope this helps
Leon Lambert
 
Z

Zeba

IE does the same thing. I finally used System.Diagnostic.Debug to
print out values to the Debug output screen from my AppHandler.cs so I
could debug. That worked fine, but I'd love it if debugger could just
step into the handler and do things for me !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top