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.

 

 

 

你可能感兴趣的:(JavaScript)