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

zyip發表於2014-01-27

 

    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.

 

 

 

相關文章