Debug.Assert(): missing MsgBox (VS.NET 2003, C#)

M

Mark Newby

when i try to use (in a web form)

System.Diagnostics.Debug.Assert(false, "IT IS FALSE");

i never get the MsgBox-style dialog box displaying when the assertion
evals as false when run in debug mode. the project is located on the
local pc (xp pro, sp2) and run in debug mode from local pc, so the
dialog box should appear on local pc, right?

the VS.NET Output Window shows correct "IT IS FALSE" output, etc.

any ideas?

mark (studying for 70-315)
 
G

G.V.

http://www.c-sharpcorner.com/Code/2003/Dec/DebugAssertInASPDotNet.asp

G.V.

: when i try to use (in a web form)
:
: System.Diagnostics.Debug.Assert(false, "IT IS FALSE");
:
: i never get the MsgBox-style dialog box displaying when the assertion
: evals as false when run in debug mode. the project is located on the
: local pc (xp pro, sp2) and run in debug mode from local pc, so the
: dialog box should appear on local pc, right?
:
: the VS.NET Output Window shows correct "IT IS FALSE" output, etc.
:
: any ideas?
:
: mark (studying for 70-315)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,733
Messages
2,569,440
Members
44,830
Latest member
ZADIva7383

Latest Threads

Top