SOURCE

function a(){
    console.log(1)
    b()
    console.log(2)
}
function b(){
    try{
        throw new Error('错误')
    }catch(error){
        console.log(error)
    }
}
a()
console 命令行工具 X clear

                    
>
console