2017-12-07 2 views

답변

0

당신은 캐치되지 않는 예외를보기 위해 프로세스 API를 사용할 수 있습니다.

process 
    .on('unhandledRejection', (reason, p) => { 
    // Use your own logger here 
    console.error(reason, 'Unhandled Rejection at Promise', p); 
    }) 
    .on('uncaughtException', err => { 
    // Use your own logger here 
    console.error(err, 'Uncaught Exception thrown'); 

    // Optional: Ensure process will stop after this 
    process.exit(1); 
    }); 

자세한 내용은 answer to a similar question 여기에서 스택 오버플로를 확인하십시오. 이 위대한 블로그 게시물도 있습니다 : https://shapeshed.com/uncaught-exceptions-in-node/.

추가 정보로 다른 정보를 확인하면 충돌 정보가있는 이메일을 수신 할 수 있습니다. https://coderwall.com/p/4yis4w/node-js-uncaught-exceptions