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

Use ts-node for Typescript Projects #736

Open
grbspltt opened this issue Nov 18, 2020 · 10 comments
Open

Use ts-node for Typescript Projects #736

grbspltt opened this issue Nov 18, 2020 · 10 comments
Labels

Comments

@grbspltt
Copy link

It would be really nice to use ts-node under the hood for typescript projects when developing. Debugging errors would be far easier seeing where the error happened in the TS code vs compiled JS.

@apawast
Copy link

apawast commented Nov 18, 2020

@mhoeger could you please take a look at this?

@mhoeger
Copy link
Contributor

mhoeger commented Nov 18, 2020

Hi @grbspltt - we're not very likely to fix this, it's quite a bit of work for a very specific scenario for us (especially because we would not want to run with ts-node in production for perf reasons).

One thing we are working on is fixing this, so that file changes can be made while debugging: Azure/azure-functions-host#3543. Hopefully any errors are going to be easier to see and debug with a debugger attached. Please let us know if this wouldn't meet your need and we can consider it for the future, although please note that we are unlikely to implement this specific ask.

@grbspltt
Copy link
Author

@mhoeger Thanks for the response. I would expect that using ts-node would be for development purposes only. I don't know anything about what happens under the hood when func start is run but perhaps a command like func start-dev could use ts-node and the source files instead of dist.

What I'm really looking for is a simpler way to read error messages. I see the source maps in dist, but they aren't used when errors come up.

@hlz
Copy link

hlz commented Nov 19, 2020

Would love to see support for this as well!

@gidich
Copy link

gidich commented Mar 29, 2021

BUMP! Let's keep this one in the spotlight

@etang93
Copy link

etang93 commented Apr 1, 2021

This would be a great feature to have!

@nguyenduy
Copy link

This would speed up the development process a lot!

@mogupta-ecfmg
Copy link

This is something I have been expecting to see for a long time now! Its very inconvenient to stop/start the debug session everytime we make a change.

@tuomaskujala
Copy link

Would be great if this was included in the tools.

As a temporary solution, I'm running tsc -w in another bash tab.

@thomasgauvin
Copy link

thomasgauvin commented Mar 14, 2022

What is the guidance for debugging TypeScript projects? EDIT: Had to manually adjust ports for inspection as mentioned here https://stackoverflow.com/a/55932453/18146992

@shreyabatra4 shreyabatra4 transferred this issue from Azure/azure-functions-core-tools Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants