I get this error when tr…
I get this error when trying to test-debug my app. “Starting inspector on 127.0.0.1:36225 failed: address already in use”. The port number is different every time i run it. I am on the current file of an angular lib. Do i need to be aware of anything in my angular.json file?
{
"version": "0.2.0",
"configurations": [
{
"name": "Test Jest Current File",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/node_modules/@nrwl/cli/bin/nx.js",
"args": [
"test",
"--testPathPattern=${fileBasenameNoExtension}",
"--runInBand",
],
"console": "internalConsole",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true
}
]
}
Responses:
I dont remember if the debugger and inspector need to be on the same port. Maybe the debugger is cancelling the inspector out. i just remember using the --inspect
option
Debugger listening on <ws://127.0.0.1:26204/38fcf8ec-2eb4-40fd-9aed-d1f470a40d6d>
For help, see: <https://nodejs.org/en/docs/inspector>
Debugger attached.
Starting inspector on 127.0.0.1:26204 failed: address already in use
Waiting for the debugger to disconnect...