Matei's blog

Confessions of Mort

About the author

Author Name is someone.
E-mail me Send mail

Recent posts

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010

Creating REST Web Services with Windows Communication Foundation

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

Tags:
Posted by mateid on Tuesday, March 25, 2008 9:38 AM
Permalink | Comments (0) | Post RSSRSS comment feed

Conditional debug with JavaScript

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

Posted by mateid on Tuesday, March 25, 2008 9:38 AM
Permalink | Comments (0) | Post RSSRSS comment feed