Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Nodejs debugger - doesn't stop at breakpoint #17

Open
raviv opened this issue Feb 9, 2016 · 4 comments
Open

Nodejs debugger - doesn't stop at breakpoint #17

raviv opened this issue Feb 9, 2016 · 4 comments

Comments

@raviv
Copy link

raviv commented Feb 9, 2016

When running nodejs code in debug mode, it doesn't break on breakpoints, although runner shows
"Debugger listening on port 15454"

Don't know if this is related but I'm running node 4.2.6 and the workspace is set to ~ (home)
Using latest version of C9SDK

Thanks.

@nightwing
Copy link
Member

Does this happen even for a simple script? If yes does it stop on debugger statement?

@raviv
Copy link
Author

raviv commented Feb 11, 2016

@nightwing - I found the reason for this weird behaviour.
The file I was debugging was a in a symbolic linked folder in my workspace.
Once I tried working on the actual folder debugger worked correctly.
Not sure if it's a bug or the expected behaviour.

Thanks anyways.

@Jacksotnik
Copy link

Faced the same problem. Breakpoints working only if function placed in root folder. If i move function for example into ./src/ folder, breakpoints not working. How to fix it?

@Jacksotnik
Copy link

Jacksotnik commented Dec 14, 2018

I found more about problem. It's not depend from folders structure. It's happens only when we are using CodeURI directive in yaml file. I think it's bug
For to reproduce it, config for function need to be something like this:

CodeUri: ./folder-with-handler-file
Handler: index.handler

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