-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
How to debug typescript application with pm2? #3512
Comments
Hi "apps": [ IMPORTANT: it works only with ts-node < 5.0.0, because this version does not accept node advanced flags anymore. I'm looking for the solution to work with newest ts-node version which is installed by default together with typescript using "pm2 install typescript" |
Pm2 with ts-node in current version is currently not usable in development due to handling of pm2/lib/API/Modules/Modularizer.js Line 32 in 0d00936
Any way to fix that? See TypeStrong/ts-node#537 for more information. |
I'm not sure if it will work because I never tested it. But you can try overriding typescript installation (to downgrade ts-node) into your ecosystem.json
|
Below manual ts-node folder replacement that works for me:
|
is there any fancy way instead of downgrade ts ? |
I'm interested in this too |
Is there a way to debug typescript application with pm2?
I'm launching my application using the following command:
"start": "./node_modules/.bin/pm2 start --node-args="--inspect" --watch src/ src/server/server.ts"
I've also tried to specify node-args using json configuration but it doesn't help.
Could you please help me with it?
The text was updated successfully, but these errors were encountered: