Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging #7

Closed
thiagoananias opened this issue Jul 3, 2017 · 2 comments
Closed

Debugging #7

thiagoananias opened this issue Jul 3, 2017 · 2 comments

Comments

@thiagoananias
Copy link

thiagoananias commented Jul 3, 2017

Hello, i have a begginers question: How may i debug the code, for example, i'am using Visual Studio Code and have the following configuration file

{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Gulp task",
"program": "${workspaceRoot}/node_modules/gulp/bin/gulp.js",
"args": [
"serve:development", "--colors"
]
}
]
}

with this i can see that for example, the Gulp code inside node_modules is debuggable cause the breakpoint stops there, but the code server.js and server/register are not stoping...

And inside the server/models/my.model.js i have a create:pre function defined, the function is executed as well but the debug is not being fired

Thanks!

@JKHeadley
Copy link
Owner

Hi @thiagoananias, thanks for your interest. Unfortunately I'm not very familiar with VS Code and its debugging features. I personally use Webstorm for node.js development, and I'm pretty sure it allows for breakpoints to be set for any code that is executed. I highly recommend it.

@thiagoananias
Copy link
Author

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants