title: Node.js debugger has a default value of --inspect-brk=PORT without specifying this in the script
body: <p>When I run my mocha tests in debug mode, Node.js debugger has a default value used as the <code>--inspect-brk=</code> value.
  Without specifying it in the script, my test script looks like that</p>
  <pre><code>--timeout=15000 --appName=ejbrowser --role=adminUserOne --env=tst --reporter=spec tests/api/ejbrowser/devices/all.spec.js --failureFatal=1
  </code></pre>
  <p>But when I run it with debug mode the script that is being executed is:</p>
  <pre><code>C:\Program Files\nodejs\node.exe&quot; C:\repos\yyc-api-ui-automation\node_modules\mocha\bin\mocha --inspect-brk=57629 --appName=ejbrowser --role=adminUserOne --env=tst --timeout=60000 --slow=2000 --reporter=mochawesome tests/ui/-common/-health-checks-lvl1/all.spec.js --browserClient=chrome --failureFatal=1 --timeout 0 --ui bdd --reporter &quot;C:\Program Files\JetBrains\IntelliJ IDEA 2021.3\plugins\NodeJS\js\mocha-intellij\lib\mochaIntellijReporter.js&quot;
  </code></pre>
  <p>Where does this value <code>--inspect-brk=57629</code> come from?</p>
  <p>The project that I work on doesn't accept this parameter in commandLineArgs and I had to modify it to accept { partial: true} which is not perfect. So I am trying to understand what is populating this value.</p>
  <p>I use IntelliJ idea 2021.3.2 Ultimate.</p>
  <p>package.json :</p>
  <pre><code>{
    &quot;name&quot;: &quot;cloudexa-yyc-automation&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;description&quot;: &quot;Java Script | Selenium Functional Automation Tests with Mocha / API Automation Tests with Supertest&quot;,
    &quot;author&quot;: &quot;Valeriu Jecov&quot;,
    &quot;license&quot;: &quot;ISC&quot;,
    &quot;main&quot;: &quot;index.js&quot;,
    &quot;homepage&quot;: &quot;&quot;,
    &quot;bugs&quot;: {
      &quot;url&quot;: &quot;https://jira.esq.com/secure/Dashboard.jspa&quot;,
      &quot;email&quot;: &quot;valeriu.jecov@cloudexa.com&quot;
    },
    &quot;repository&quot;: {
      &quot;type&quot;: &quot;git&quot;,
      &quot;url&quot;: &quot;https://git.esq.com/esq/qa/automation/automation&quot;
    },
    &quot;scripts&quot;: {
      &quot;test:all&quot;: &quot;mocha --timeout 5000 --reporter=mochawesome tests/*/*.js --failureFatal=1&quot;,
      &quot;api:all&quot;: &quot;mocha --timeout 10000 --reporter=mochawesome tests/api/*.js --failureFatal=1&quot;,
      &quot;api:amq&quot;: &quot;mocha --timeout=10000 --reporter=spec tests/api/__playgrounds/amqpTest.js --failureFatal=1&quot;,
      &quot;api:gorest&quot;: &quot;mocha --timeout 5000 --reporter=mochawesome tests/api/__playgrounds/optimized-users-posts.js --failureFatal=1&quot;,
      &quot;api:stardust:all&quot;: &quot;mocha --timeout=15000 --reporter=spec tests/api/stardust/StardustPOC/all.spec.js --failureFatal=1&quot;,
      &quot;api:ejbrowser:devices&quot;: &quot;mocha --timeout=15000 --reporter=spec tests/api/ejbrowser/devices/all.spec.js --failureFatal=1&quot;,
      &quot;api:checkbrowser:check-files&quot;: &quot;mocha --timeout=15000 --reporter=spec tests/api/checkbrowser/check-files/all.spec.js --failureFatal=1&quot;,
      &quot;ui:all&quot;: &quot;mocha --timeout=30000 --slow=2000 tests/ui/*/all.spec.js --browserClient=chrome --failureFatal=1 --reporter=mochawesome&quot;,
      &quot;ui:healthChecks:lvlOne:all&quot;: &quot;mocha --timeout=60000 --slow=2000 tests/ui/-common/-health-checks-lvl1/all.spec.js --browserClient=chrome --failureFatal=1 --reporter=mochawesome&quot;,
      &quot;ui:healthChecks:lvlOne:loginLogOut&quot;: &quot;mocha --timeout=60000 --slow=2000 tests/ui/-common/-health-checks-lvl1/logInLogOut.spec.js --browserClient=chrome --failureFatal=1 --reporter=mochawesome&quot;,
      &quot;ui:healthChecks:lvlOne:switcher&quot;: &quot;mocha --timeout=60000 --slow=2000 tests/ui/-common/-health-checks-lvl1/switcher.spec.js --browserClient=chrome --failureFatal=1 --reporter=mochawesome&quot;,
      &quot;ui:healthChecks:lvlTwo:ejbrowser_mercy&quot;: &quot;mocha --timeout=60000 --slow=2000 tests/ui/ejbrowser/mercyAndAdele/mercy_all.spec.js --browserClient=chrome --failureFatal=1 --reporter=mochawesome&quot;,
      &quot;ui:healthChecks:lvlTwo:ejbrowser_adele&quot;: &quot;mocha --timeout=60000 --slow=2000 tests/ui/ejbrowser/mercyAndAdele/adele_all.spec.js --browserClient=chrome --failureFatal=1 --reporter=mochawesome&quot;,
      &quot;ui:healthChecks:lvlTwo:ejbrowser&quot;: &quot;mocha --timeout=60000 --slow=2000 --appName=ejbrowser tests/ui/ejbrowser/-health-checks/two.spec.js --failureFatal=1 --reporter=mochawesome&quot;,
      &quot;ui:healthChecks:lvlTwo:incidentmanager&quot;: &quot;mocha --timeout=60000 --slow=2000 --appName=incidentmanager ./tests/ui/incidentmanager/-health-checks/two.spec.js --browserClient=chrome --failureFatal=1 --reporter=mochawesome&quot;,
      &quot;ui:healthChecks:lvlTwo:monitoring&quot;: &quot;mocha --timeout=60000 --slow=2000 --appName=monitoring tests/ui/monitoring/-health-checks/two.spec.js --failureFatal=1 --reporter=mochawesome&quot;,
      &quot;ui:incidentmanager:crud:incidents&quot;: &quot;mocha --timeout=80000 --slow=2000 --appName=incidentmanager ./tests/ui/incidentmanager/create-edit-delete-incident/crud-incident.spec.js --browserClient=chrome --failureFatal=1 --reporter=mochawesome&quot;,
      &quot;ui:monitoring:all&quot;: &quot;mocha --timeout=80000 --slow=2000 --appName=monitoring tests/ui/monitoring/-health-checks/all.spec.js --browserClient=chrome --failureFatal=1 --reporter=mochawesome&quot;,
      &quot;ui:dataanalyzer:all&quot;: &quot;mocha --timeout=60000 --slow=2000 --appName=dataanalyzer ./tests/ui/dataanalyzer/*/all.spec.js --browserClient=chrome --failureFatal=1 --reporter=mochawesome&quot;,
      &quot;ui:dispatcher:all&quot;: &quot;mocha --timeout=60000 --slow=2000 --appName=dispatcher ./tests/ui/dispatcher/-health-checks/all.spec.js --browserClient=chrome --failureFatal=1 --reporter=mochawesome&quot;,
      &quot;ui:documentation:all&quot;: &quot;mocha --timeout=60000 --slow=2000 --appName=documentation ./tests/ui/documentation/-health-checks/all.spec.js --browserClient=chrome --failureFatal=1 --reporter=mochawesome&quot;,
      &quot;ui:fieldservice:all&quot;: &quot;mocha --timeout=60000 --slow=2000 --appName=fieldservice ./tests/ui/fieldservice/-health-checks/all.spec.js --browserClient=chrome --failureFatal=1 --reporter=mochawesome&quot;,
      &quot;ui:obadminclient:all&quot;: &quot;mocha --timeout=60000 --slow=2000 --appName=obadminclient ./tests/ui/obadminclient/-health-checks/all.spec.js --browserClient=chrome --failureFatal=1 --reporter=mochawesome&quot;,
      &quot;ui:rbac:all&quot;: &quot;mocha --timeout=60000 --slow=2000 --appName=rbac ./tests/ui/rbac/*/all.spec.js --browserClient=chrome --failureFatal=1 --reporter=mochawesome&quot;,
      &quot;ui:reporter:all&quot;: &quot;mocha --timeout=60000 --slow=2000 --appName=reporter ./tests/ui/reporter/-health-checks/all.spec.js --browserClient=chrome --failureFatal=1 --reporter=mochawesome&quot;,
      &quot;ui:workspace:all&quot;: &quot;mocha --timeout=60000 --slow=2000 --appName=workspace ./tests/ui/workspace/-health-checks/all.spec.js --browserClient=chrome --failureFatal=1 --reporter=mochawesome&quot;
    },
    &quot;keywords&quot;: [],
    &quot;devDependencies&quot;: {
      &quot;@babel/cli&quot;: &quot;^7.13.0&quot;,
      &quot;@babel/core&quot;: &quot;^7.13.8&quot;,
      &quot;@babel/node&quot;: &quot;^7.13.0&quot;,
      &quot;@babel/plugin-transform-runtime&quot;: &quot;7.12.13&quot;,
      &quot;@babel/preset-env&quot;: &quot;^7.13.9&quot;,
      &quot;@babel/register&quot;: &quot;^7.13.8&quot;,
      &quot;base-64&quot;: &quot;^1.0.0&quot;,
      &quot;browserstack-local&quot;: &quot;^1.4.8&quot;,
      &quot;chai&quot;: &quot;^4.3.3&quot;,
      &quot;command-line-args&quot;: &quot;^4.0.6&quot;,
      &quot;deferred&quot;: &quot;^0.7.11&quot;,
      &quot;dotenv&quot;: &quot;^8.2.0&quot;,
      &quot;faker&quot;: &quot;^5.4.0&quot;,
      &quot;fs-extra&quot;: &quot;^9.1.0&quot;,
      &quot;iedriver&quot;: &quot;^3.150.1&quot;,
      &quot;jira-client&quot;: &quot;^6.21.1&quot;,
      &quot;jshint&quot;: &quot;^2.12.0&quot;,
      &quot;jsonfile&quot;: &quot;^6.1.0&quot;,
      &quot;mocha&quot;: &quot;^9.2.1&quot;,
      &quot;mochawesome&quot;: &quot;^7.1.2&quot;,
      &quot;moment&quot;: &quot;^2.29.1&quot;,
      &quot;npm&quot;: &quot;^8.5.4&quot;,
      &quot;rhea&quot;: &quot;^1.0.24&quot;,
      &quot;selenium-webdriver&quot;: &quot;^4.1.1&quot;,
      &quot;supertest&quot;: &quot;^6.1.3&quot;
    },
    &quot;jshintConfig&quot;: {
      &quot;esversion&quot;: 6,
      &quot;laxcomma&quot;: true,
      &quot;expr&quot;: true
    }
  }[enter image description here][1]
  </code></pre>