Node - Debug

Table of Contents

Management

Detect

You can detect that Node was started in debug mode with the following logic.

const debug = typeof v8debug === 'object' || /--debug|--inspect/.test(process.execArgv.join(' '));

Powered by ComboStrap