Matei's blog

Of this and that

Creating REST Web Services with Windows Communication Foundation

clock March 25, 2008 09:38 by author mateid

Interesting article on WCF. Read on!

Creating RESTful Web Services with Windows Communication Foundation

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Conditional debug with JavaScript

clock March 25, 2008 09:38 by author mateid
We all know the "debugger" JavaScript statement will cause your script to break in the debugger. You can use this statement with like if {} else {} and conditionally break into the debugger in your script. See an example below.
 
   1: function ConditionalBreakPoint()
   2: {
   3:     debugger;
   4:     
   5:     for(i=0;i<20;i++)
   6:     {
   7:         if(i==10)
   8:         {
   9:             debugger;
  10:             Sys.Debug.trace("Debugger " + i);
  11:         }
  12:         Sys.Debug.trace(i);
  13:     }
  14: }

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5