How to debug using TypeScript source files instead of compiled JavaScript?

I'm trying to debug the Hono.js library code while developing my application, but I'm having trouble setting breakpoints in the original TypeScript source files. Currently, when I try to step into Hono's code during debugging, it shows the compiled JavaScript files in node_modules/hono/dist instead of the original TypeScript source files. Can i debug by TypeScript source files?
2 Replies
Aditya Mathur
Aditya Mathur6d ago
Can you share more info about your setup, and runtime?
ambergristle
ambergristle6d ago
i just drop console logs in the source code

Did you find this page helpful?