I am working on a wpf project and debug.assert won't pop up the message box when the condtion is false.
public class MainApp{
static string KioskName = "Kiosk";[
STAThread] static int Main(string[] args){
Debug.Assert(false,"test"); => this won't stop if I run in debug mode (using F5)....
}
I guess this might have something to do with my project set up but I can not figure out why.
(If I create a new wpf project, debug.assert works fine)
Please help since debug.assert really helps during development.
thanks/chong

debug.assert didn't work in debug mode.
nigor
Thanks for the suggestion but I have "DEFINE DEBUG CONSTAND" defined in the "build" page.
Chong
Bassam72
right click on your project, choose "Properties", in the showing window, choose "Build" page, make sure "Define DEBUG constant" is checked, then Assert should works fine.