The function call is missing the second argument (defaultPort).

IMO you should send `config.debugPort` and remove the line 14, which is altering the global `config.debugPort` value.

```js
var debugPort = getDebuggerPort(req.url, config.debugPort);
```