eclipse-typescript icon indicating copy to clipboard operation
eclipse-typescript copied to clipboard

Supporting Debugging

Open behappyrightnow opened this issue 12 years ago • 7 comments

Wondering if debugging is on the roadmap, and if so, when might it be expected? Thank you so much for a great plugin!

behappyrightnow avatar Sep 26 '13 22:09 behappyrightnow

I would love to have debugging. It will likely be a very long time before I can get to it though so if someone in the community wants to take a shot at it, that would be greatly appreciated. I think you can start here: https://code.google.com/p/chromedevtools/

derekcicerone-zz avatar Sep 26 '13 22:09 derekcicerone-zz

This was fixed by #172!

vergenzt avatar Sep 17 '14 19:09 vergenzt

Does this mean that you can now set breakpoints and inspect variables inside Eclipse for TS files that are running in the browser in JavaScript form? Is there any documentation on this feature? Does it work with Chrome only? It is not mentioned in the feature list here: https://github.com/palantir/eclipse-typescript/blob/master/README.md

sothmann avatar Sep 19 '14 09:09 sothmann

Whoops, I think Tim closed this one by mistake. He added support for debugging the Eclipse plug-in code itself - not debugging TypeScript code running in a browser. This should still be open. Sorry for the misunderstanding.

derekcicerone-zz avatar Sep 19 '14 13:09 derekcicerone-zz

Oh, sorry about that! My mistake. I added a fix to debug the TypeScript plugin itself.

If the TypeScript code you're writing is for Node though, there's a browser-based debugger you can run called node-inspector and it's pretty nice. It's what the plugin code now uses for debugging, and it just opens a Chrome tab when you start the process. Let me know if I can help get you set up with it!

vergenzt avatar Sep 19 '14 14:09 vergenzt

Thanks for the clarification! I'm looking for a way to debug the TypeScript code that is running in the browser (Chrome) from within Eclipse. The other TypeScript Eclipse Plugin - TypEcs - is supporting this kind of debugging, see https://bitbucket.org/axmor/typecs/wiki/2.0%20-%20New%20and%20Noteworthy. Is there any chance that you could adept that feature?

sothmann avatar Sep 20 '14 08:09 sothmann

We'd definitely like to support this functionality but we don't have resources for it at this time since it seems like a rather large project (though maybe I'm over-estimating it?). If someone in the community would like to start it, we'd love to take the pull request.

derekcicerone-zz avatar Sep 25 '14 19:09 derekcicerone-zz