re:
!is there anything in (VB).NET that would allow me to do this?
No, there isn't any native support for debug.assert,
but you can roll your own version quite easily, thanks to Dr. DotNetsky:
http://www.eggheadcafe.com/PrintSear...asp?LINKID=573
Compile the code in that page to an assembly, place the assembly in the
bin directory of your app, and add the Assert Handler to your app in Global.asax,
per the code supplied.
Voila! You have a debug.assert handler.
It will only fire in Debug mode and when running in localhost.
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
===================================
"Brian Cryer" <br****@127.0.0.1.activesol.co.ukwrote in message
news:eK****************@TK2MSFTNGP02.phx.gbl...
It would be very handy to be able to stop the debugger on parts of code without having to
explicitly set a breakpoint - either a "debugger.break" or "debug.assert" type of thing would do.
I've not come across anything, but is there anything in (VB).NET that would allow me to do this?
TIA.
--
Brian Cryer
www.cryer.co.uk/brian