-
-
Notifications
You must be signed in to change notification settings - Fork 797
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
Debug Node AWS Lambda Function with serverless offline causes Error #581
Comments
Hi @ManuelMos, |
Hello, I'm having the same issue. I'm on Ubuntu 18.04.1 LTS, with Node v8.15.1, serverless v1.40.0 and serverless-offline 3.33.0 I have checked and there is not a hypen, there is a space. Putting a hypen gives a completely different error: |
@ManuelMos @ocramot If you are still having this issue, could you try:
may be related to (although this mentions only node v11.x): nodejs/node#25967 feel free to re-open if you think this is an issue with |
Hello i had same issue on my Windows 10, managed to solve it by changing the path as shown bellow.
|
This is a Bug Report
Description
I try to debug my nodejs lambda function with serverless offline.
Running
node --inspect node_modules/.bin/serverless offline
causes:
basedir=(dirname "(echo “$0” | sed -e ‘s,,/,g’)")
^^^^^^^
SyntaxError: missing ) after argument list
at new Script (vm.js:79:7)
at createScript (vm.js:251:10)
at Object.runInThisContext (vm.js:303:10)
at Module._compile (internal/modules/cjs/loader.js:657:28)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
Same when i try to run it in intellij:
The text was updated successfully, but these errors were encountered: