Debugging Global.asax

A

Andrew

Hello,

I have an asp.net (c#) app in VS 2k3 on a WinXP sp2 box. Local IIS web
server. The breakpoints in the Global.asax are not being hit. When I start
the debugger the glyph becomes a question mark and hovering the mouse over
it displays ". no symbols are loaded for this document". The modules window
says the symbols are loaded and the reload symbols option is grayed. Also
breakpoints in other files work. I tried creating a new app and setting
breakpoints in Global.asax they don't hit either. I've deleted the \bin
folder, the cache, the solution file, restarted IIS and rebuilt with no
luck. web.config has debug="true" and the project properties is set to
debug. Any direction on this would be greatly appreciated.

Thank you.
 
I

intrader

Hello,

I have an asp.net (c#) app in VS 2k3 on a WinXP sp2 box. Local IIS web
server. The breakpoints in the Global.asax are not being hit. When I start
the debugger the glyph becomes a question mark and hovering the mouse over
it displays ". no symbols are loaded for this document". The modules window
says the symbols are loaded and the reload symbols option is grayed. Also
breakpoints in other files work. I tried creating a new app and setting
breakpoints in Global.asax they don't hit either. I've deleted the \bin
folder, the cache, the solution file, restarted IIS and rebuilt with no
luck. web.config has debug="true" and the project properties is set to
debug. Any direction on this would be greatly appreciated.

Thank you.
I suggest that you debug by setting up trace up.
 
M

Mikael Sandberg

Use the following:

(VB.Net)
System.Diagnostics.Debugger.Break()

Where you would like the debugger to stop.
 

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