Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[wtp-dev] What about debugging with SourceMap (to debug TypeScript, CoffeScript...)

Hi JSDT guys,

Eclipse Neon provides a cool integration of Chromium to debug _javascript_.

In my case, I would like to provide support for TypeScript debugging (see https://github.com/angelozerr/typescript.java/issues/2) and I'm studying how to do that with JSDT debugger.

I have created an issue at https://bugs.eclipse.org/bugs/show_bug.cgi?id=487465

My question is do you know if existing code of Chromium can support sourcemap?


---------------------------------------------------
I have noticed that it exists SourcePositionMapBuilder#addMapping(ResourceSection originalSection, ResourceSection vmSection, TextSectionMapping fromOriginalToVmSectionMapping).

To access it we could do ConnectedTargetData#getSourcePositionMapBuilder() where ConnectedTargetData instance is created by DebugTargetImpl inside attach method.

My need is to get this instance of ConnectedTargetData and call addMapping, but I don't know when I could do that?
---------------------------------------------------
 * If the existing code cannot support sourcemap, have you the intention to support it? If yes what is your RoadMap?
* If it support it (with SourcePositionMapBuilder#addMapping) could you tell me where I could call this method.

Any help are welcome! Thanks!

Regard's Angelo

Back to the top