javascript - How do I provide source-level debugging for a language like VS does for TypeScript? -
i understand concept of using source maps javascript make debugging easier minified scripts, etc. don't how source-level debugging works typescript in visual studio (http://blogs.msdn.com/b/typescript/archive/2012/11/15/announcing-typescript-0-8-1.aspx).
for example, if create own language compiles/translates javascript, how interface browsers provide kind of source-level debugging? there standard protocol this? how visual studio it?
update
to clarify more, let's invent language called caffeinated beverage script compiles javascript. build ide language , want able set breakpoints, step through code, inspect variables, etc. in ide while javascript runs in browser. how ide communicate browser on level?
you might consider webkit's remote debugging api:
https://developers.google.com/chrome-developer-tools/docs/protocol/1.0/index
i believe that's sublime web inspector uses.
Comments
Post a Comment