Skip to content

Conversation

@oleneveu
Copy link

Hello Dan-el,

IE11 can now use source maps (well, since last year). However it was not working with the file generated by SharpKit.
I have made some small changes to make it work, it is of course still compatible with Chrome and Firefox.

Basically I have included the source root at the beginning of every source file path.
It gives you something like that:
..."sourceRoot":"","sources":["SourceMaps.ashx/C:/Dev/Windows/Ja...

For what I have understood, IE looks at the value in the sourceroot property, but the fact that the file names starts with a drive name (i.e. C:/...) seems to confuse him.

I was actually trying to make the debugging works from within Visual Studio (it would have been great, don't you think?) but I couldn't achieve that.
If you remove completely the sourceroot content (just leaving the full path of the files), the browser cannot find anymore the source files but Visual studio does make the link when you start a debug session with IE. However, it does not allow to put a breakpoint in the cs files.
Maybe a bit more digging could do it, I'll try when I have time.

Regards,

Olivier

danelkhen added a commit that referenced this pull request Jun 12, 2015
Provide compatibility with IE11 for source maps.
@danelkhen danelkhen merged commit 9ee4920 into SharpKit:master Jun 12, 2015
@danelkhen
Copy link
Member

Very nice! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants