-
-
Notifications
You must be signed in to change notification settings - Fork 539
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
Cannot access source-maps #807
Comments
@geekflyer I can think of some workarounds that would be relatively easy. Either via |
I don't work for Google, so the only information I have is from googleapis/cloud-debug-nodejs#652 (comment) and https://github.com/googleapis/cloud-debug-nodejs/graphs/contributors and it looks like @ofrobots and @DominicKramer would be the best persons to talk to. |
btw i faced the same problem a while ago with https://www.rookout.com . So maybe one of them ( @itielshwartz @LiranLast @orishavit @orweis @tkore ) wants to chime in for a solution as well. Would be cool if we can solve this for both rookout and cloud debugger. |
@geekflyer - Rookout does support debugging ts-node if you configure typescript to build source maps. The easiest way of doing that is using the If you are interested, I would love to hear more about what you are trying to achieve using Rookout/Google Cloud Debugger. |
Hey @LiranLast thanks for your response. Are you sure this is working with ts-node? I tried out rookout with ts-node in November last year and didn't get it to work. Quite possible that things might have changed for good in the meantime though or that the root cause was another one. Is there a minimal example using ts-node with rookout somewhere? Thanks |
Hi @geekflyer check out this link. @Zohar2506 tested it with ts-node earlier today. Feel free to reach out using the in-app chat or any other way. |
FWIW, |
@blakeembrey you may be right, we just used our standard TypeScript configuration. I definitely think building source maps by default is the way to go. Internally, Rookout uses source-map-resolve to get source map information. |
👋 I've been working on adding support for source-maps into Node.js itself, One thought on my mind, is whether we could expose a public API that lets implementors look at what source-maps have been cached in Node.js itself. In general, would love help kicking the tires of this new feature. |
@bcoe this sounds like an amazing feature. We are currently relying on the inspector API together with a few third-party libraries to load the source maps. Built-in support would help us a lot, and we would love to take part in this feature! |
@LiranLast awesome, would love the help from some folks who have specific use-cases (beyond my own 😄 ). I've created a tracking issue here: And am happy to help folks onboard to the Node.js project who'd like to pitch in. |
@bcoe I'm taking a quick look at this, and I'm not sure if anything is required from We install Lines 464 to 479 in ce7c323
Each emitted file has the sourcemap embedded as base64, so there is no need to read an extra Lines 1038 to 1047 in ce7c323
Do we need to do anything extra for One quirk: the filenames are the original |
Hi,
I'd like to use ts-node in conjunction with Google Cloud Debugger.
The folks from Google are saying that they can't support ts-node because it doesn't expose the source-maps (googleapis/cloud-debug-nodejs#652 (comment) ).
Any thoughts on if and how this dilemma can be solved?
Thanks!
The text was updated successfully, but these errors were encountered: