Lieven Cardoen
Lieven Cardoen

Reputation: 25949

Debug HTTP Module Init Event From ASP.NET Application

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

Upvotes: 4

Views: 2922

Answers (2)

samy
samy

Reputation: 14962

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

Upvotes: 6

Aristos
Aristos

Reputation: 66641

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

Debug.Fail("Just a Break");

Upvotes: 0

Related Questions