7 Replies Last post: Feb 8, 2013 9:00 AM by Vladimir Krivosheev  
Mathieu Rivest Newbie 11 posts since
Jan 28, 2013
Currently Being Moderated

Jan 29, 2013 5:33 AM

Typescript with sourcemaps

Typescript works perfectly. Except I can't get it to work with sourcemaps. The sourcemaps do get created (I did manually add the --sourcemap argument to tsc background task though), but it doesn't seem like my breakpoints get hit.

 

Can anyone get them to work? This would be soooooo wonderfull!

 

(Btw, just how GREAT is contextual help in webstorm? bringing up out of date extensions, showing how to setup typescript. I had the whole thing working in five minutes! THIS is the way to make software!).

 

M.

Vladimir Krivosheev Novice 176 posts since
Mar 3, 2007
Currently Being Moderated
Jan 29, 2013 2:25 PM in response to: Mathieu Rivest
Re: Typescript with sourcemaps

Could you specify OS and WebStorm version?

Vladimir Krivosheev Novice 176 posts since
Mar 3, 2007
Currently Being Moderated
Jan 29, 2013 4:22 PM in response to: Mathieu Rivest
Re: Typescript with sourcemaps

Could you attach test project or any test files? May be http://youtrack.jetbrains.com/issue/WEB-6402 (try to clear browser cache)?

Vladimir Krivosheev Novice 176 posts since
Mar 3, 2007
Currently Being Moderated
Jan 29, 2013 6:51 PM in response to: Mathieu Rivest
Re: Typescript with sourcemaps

1) Firefox is not supported, please see http://youtrack.jetbrains.com/issue/WEB-2337 Only Google Chrome.

2) Debug sourcemap-backed bootstrap code is not supported, please see http://youtrack.jetbrains.com/issue/WEB-6413 You can debug event handlers or any other code, executing after page load.

Matthew Berrie Newbie 13 posts since
Sep 19, 2012
Currently Being Moderated
Feb 8, 2013 8:53 AM in response to: Mathieu Rivest
Re: Typescript with sourcemaps

I noticed that when loading the source directly from the file system, chrome will load static files via XHR only once, and serve the same contents on subsequent XHR requests to the same file. Not absolutely sure about the behavior for non-XHR load requests.

So you might be right that your problems with source maps are related to loading your document from the file system. Why you don't see what happens if you load it via a web server?

Vladimir Krivosheev Novice 176 posts since
Mar 3, 2007
Currently Being Moderated
Feb 8, 2013 9:00 AM in response to: Matthew Berrie
Re: Typescript with sourcemaps

In this case sourcemap is not working due to http://youtrack.jetbrains.com/issue/WEB-6413

More Like This

  • Retrieving data ...