4

Is it possible to debug the init event from a http module? If I set breakpoints, they don't get triggered.

2 Answers 2

6

You can attach a debugger at runtime by adding the following before the point you want to debug

System.Diagnostics.Debugger.Launch()

It will open the debug window and offer you options regarding what to do

Sign up to request clarification or add additional context in comments.

1 Comment

Interesting. Can you also explain how this works? Breakpoints in events attached to the HttpApplication get hit, a breakpoint in Init not, but with this code it will.
0

Try to set in the point of the break point...

Debug.Fail("Just a Break");

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.