On this page

    P

    process.debugPort

    History
    Type:number

    The port used by the Node.js debugger when enabled.

    import process from 'node:process';
    
    process.debugPort = 5858;