27 questions for “Debugging & Diagnostics”

Found in 1 field. Select a question to see its full answer.

Information Technology

27 questions in 2 technologies

#QuestionTechnologyTopicLevel
1What is source map support, and why is it important when debugging a transpiled or bundled Node.js application (like TypeScript compiled to JavaScript)? Node.js › Debugging & DiagnosticsNode.jsDebugging & DiagnosticsIntermediate
2How do you use the built-in 'debugger' statement together with Node's --inspect flag to set breakpoints in code? Node.js › Debugging & DiagnosticsNode.jsDebugging & DiagnosticsBeginner
3How do you use Node's built-in heap snapshot capability to diagnose a suspected memory leak? Node.js › Debugging & DiagnosticsNode.jsDebugging & DiagnosticsIntermediate
4What is the DEBUG environment variable convention (popularized by the 'debug' npm package), and how does it let you enable verbose logging selectively? Node.js › Debugging & DiagnosticsNode.jsDebugging & DiagnosticsIntermediate
5How would you use the 'clinic.js' toolset (clinic doctor, clinic flame) to diagnose a Node.js performance problem? Node.js › Debugging & DiagnosticsNode.jsDebugging & DiagnosticsAdvanced
6What is React DevTools and how do you install it? React › React DevTools & DebuggingReactReact DevTools & DebuggingBeginner
7What is the util module's inspect() function used for, and how does it relate to how console.log() displays objects? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesBeginner
8What is the difference between operational errors and programmer errors in Node.js, and why does this distinction matter? Node.js › Error HandlingNode.jsError HandlingBeginner
9Why is structured (JSON) logging generally preferred over plain-text console.log() statements in a production Node.js application? Node.js › Logging & MonitoringNode.jsLogging & MonitoringBeginner
10What does the node:util.types module provide, and how does it differ from JavaScript's built-in typeof operator? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesIntermediate