You can clone with
HTTPS or Subversion.
My first inclination when running Script# was to put a breakpoint in my C# code. Of course this doesn't work because the DLL is never loaded. However, I'm looking at this article and it mentions source mapping:
This might be horribly challenging, but might it possible to get debugging in C# code with Script#?
That's really interesting. It might not be impossible, but I would think it could be very time consuming to implement.
I'm not an expert in this, but I think there are a few ways to accomplish this. One way is to just target the V8 Engine's Remote Debugging Protocol.
Some of the components that would have to be implemented would be:
I'm sure Nikhil would know of a better and simpler way to accomplish this. If we have a feasible plan, I'm all for helping out ;)
Yep, would be super interesting, and quite time consuming, in a way that interesting things usually are... :)
It would be a bit cheaper to support debugging in chrome via source maps (http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/), to avoid doing the VS debug engine support work. The script# compiler would produce a source map that would allow inspecting variables, call stack, see c# source etc. within the inspector and dev tools within chrome.
This has certainly been requested, and I am all for someone taking a stab at the work which includes not just the actual implementation, but fully understanding source maps, thinking through the design, discussing it, etc.
That's a nice way to do it in Chrome. We should definitely start out with implementing SourceMaps and VS integration won't be necessary. I'll look into SourceMaps when I get a chance.
Btw, here's an interesting discussion on SourceMaps for CoffeeScript: jashkenas/coffeescript#558
Hmmm... so this means we'd be debugging out of Chrome and not Visual Studio?
Yes, debugging would happen in chrome. I wouldn't be surprised if other browsers eventually support source maps too, and perhaps even VS would.
Based on the original blog post above, TypeScript debugs in Visual Studio using source mapping currently... I for one would rather debug out of my development environment if possible.
I can only hope that the VS languages team created a more general sourcemap-enabled script debugging solution rather than a more constrained typescript debugging solution... though I wouldn't be surprised if it is in fact the latter.
I have no disagreement with the desire to debug out of the development environment.