Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Ability to turn off --debug-brk #170

Closed
jamesmosier opened this issue Feb 22, 2018 · 2 comments
Closed

Ability to turn off --debug-brk #170

jamesmosier opened this issue Feb 22, 2018 · 2 comments
Assignees

Comments

@jamesmosier
Copy link

I have seen a few issues centered around topics similar to this, but what is the official answer for disabling --debug-brk so that a breakpoint is not hit upon first run? I understand the purpose of this, in that it will allow the code to be stopped for debugging start up logic, but I am willing to live without that in order to not have a breakpoint be hit every time nodemon reloads.

Just for completeness, here is my launch.json configuration:

{
  "name": "Launch_Server_App",
  "type": "node",
  "request": "launch",
  "protocol": "inspector",
  "cwd": "${workspaceRoot}",
  "runtimeExecutable": "nodemon",
  "stopOnEntry": false,
  "program": "${workspaceRoot}/server/bin/www",
  "runtimeArgs": [
    "--watch",
    "server"
  ],
  "restart": true,
  "console": "internalConsole"
}

Thanks!

@weinand weinand self-assigned this Feb 22, 2018
@roblourens
Copy link
Member

but I am willing to live without that in order to not have a breakpoint be hit every time nodemon reloads.

The issue you linked isn't related to that. I'm not sure what your problem is. Can you link your app or some more details?

@jamesmosier
Copy link
Author

Sorry, the Node debugger was always breaking in a certain file at a certain place on start up. I just tested what happens if I removed that file and it fixed it. I was exporting this, which would actually run this code on start up because it was not a function that would need invoked

module.exports = axios.create({
  baseURL: process.env.API_URL,
  headers: {
    'Content-Type': 'application/json; charset=utf-8',
    Accept: 'application/json',
    'X-TOKEN': '12345',
  },
});

@weinand weinand removed their assignment Feb 23, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants