VOOZH about

URL: https://www.geeksforgeeks.org/node-js/node-js-process-debugport-property/

⇱ Node.js process.debugPort Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Node.js process.debugPort Property

Last Updated : 12 Oct, 2021
The process.debugPort property is an inbuilt application programming interface of the process module which is used to get the debugging port used by the debugger if enabled. Syntax:
process.debugPort
Return Value: This property returns an integer value that specifies the debugging port used by the debugger if enabled. Below examples illustrate the use of process.debugPort property in Node.js: Example 1: Output:
debug port is 9229
Example 2: Output:
debug port is defined
debug port is 9229
Note: The above program will compile and run by using the node filename.js command. Reference: https://nodejs.org/api/process.html#process_process_debugport
Comment

Explore