T
Tyrant Mikey
Hi all.
I've got some code I've placed in my global.asax file that registers a
trace listener. The listener actually makes Debug.Assert statements
that fail break into the debugger, which is quite handy for me.
However, if the user didn't launch the application from Visual Studio,
the listener wreaks havoc with their browser (lots of nefarious
JavaScript errors).
The code I've included in global.asax looks like this:
----------------------------------------------------------------------
Sub Application_BeginRequest(ByVal sender As Object, ByVal e As
EventArgs)
Debug.Listeners.Add(New AspNetAssertListener)
End Sub
----------------------------------------------------------------------
Now, what I'd LIKE to do is add the listener only IF the web
application was launched from the IDE. Something like this:
----------------------------------------------------------------------
Sub Application_BeginRequest(ByVal sender As Object, ByVal e As
EventArgs)
If InIDE() Then
Debug.Listeners.Add(New AspNetAssertListener)
End If
End Sub
----------------------------------------------------------------------
Does anyone know if there's a way to determine whether or not the
application has been launched from the IDE?
Thanks!
I've got some code I've placed in my global.asax file that registers a
trace listener. The listener actually makes Debug.Assert statements
that fail break into the debugger, which is quite handy for me.
However, if the user didn't launch the application from Visual Studio,
the listener wreaks havoc with their browser (lots of nefarious
JavaScript errors).
The code I've included in global.asax looks like this:
----------------------------------------------------------------------
Sub Application_BeginRequest(ByVal sender As Object, ByVal e As
EventArgs)
Debug.Listeners.Add(New AspNetAssertListener)
End Sub
----------------------------------------------------------------------
Now, what I'd LIKE to do is add the listener only IF the web
application was launched from the IDE. Something like this:
----------------------------------------------------------------------
Sub Application_BeginRequest(ByVal sender As Object, ByVal e As
EventArgs)
If InIDE() Then
Debug.Listeners.Add(New AspNetAssertListener)
End If
End Sub
----------------------------------------------------------------------
Does anyone know if there's a way to determine whether or not the
application has been launched from the IDE?
Thanks!