javascript debut trick, using the throw to make a interrupt(breakpoint) in your program

 

    console.log('initialize');
    try
    {
        throw "breakPoint";
    }
    catch(err)
    {}

when I debug the extjs, the ext loader usually make the debuging breakpoints lost. I use the previous code segment to interrupt the program where I want it stop.

 

 

 

posted @ 2014-01-27 21:06  zyip  阅读(248)  评论(0编辑  收藏  举报