I can't debug global.asax file!
I have some codes in Application_Start()
method but when I set a break point in the method, it is ignored!
Is this normal?
I can't debug global.asax file!
I have some codes in Application_Start()
method but when I set a break point in the method, it is ignored!
Is this normal?
Check that your web application is in debug mode (
<compilation debug="true">
in web.config).If you're using developer's IIS started by VS, just restart it or rebuild application.
If you're on normal IIS you have two options:
Debug - Attach to process
menu, enter computer name and then select a process to debug. It is usually a w3wp.exe working in managed mode type.A simple way to break in
Application_Start()
is to use theSystem.Diagnostics.Debugger
class. You can force the application to break by insertingSystem.Diagnostics.Debugger.Break()
where you would like the debugger to break.In case all of answers not working, try:
in
web.config
. ;)Maybe you should try: