in NodeJS Essentials by (20.8k points)

How will you debug an application in Node.js?

1 Answer

0 votes
by (32.2k points)

Node.js includes a debugging utility called debugger. To enable it start the Node.js with the debug argument followed by the path to the script to debug.Inserting the statement debugger; into the source code of a script will enable a breakpoint at that position in the code:

by (32.2k points)

x=9;

setTimeout(()=>{

debugger;

console.log('madanswer');

}1000);

Related questions

+1 vote
asked May 31, 2020 in NodeJS Essentials by Robindeniel (20.8k points)
0 votes
+1 vote
asked May 30, 2020 in NodeJS Essentials by SakshiSharma (32.2k points)
0 votes
asked Aug 15, 2021 in APIGEE - API Services by sharadyadav1986 (31.6k points)
...