-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: source maps for Chrome #18
Comments
This is something that has been on my wish list for some time. With the release out I think this is a good moment to take a look at that. Thanks for the suggestion, I'll do so on short term. |
Thanks, I see that you already started working on this on a branch. If there is anything I can do to help without getting in your way please let me know! |
Thank you for the offer! Although the principle is simple, it'll take some time working this out, avoiding one-off errors and dealing properly with multi-stage transformations. Once it works it'll have to be tested. I would appreciate if you would do some of that, Upto now I do most of the testing myself, but I sure will have missed things. An other thing that would be very useful are showcases and demo's. I have planned at least three websites using Transcrypt, one for myself and two for a third party, but this still some months off. If you use Transcrypt for production anywhere and it's allowed, send me a link to the site. In the long run I hope people will start developing library wrappers for it or port CPython stuff. Can't do that all by myself. Don't feel obliged in any way! But those are some points where my one man power falls short. |
Hello, missing sourcemaps are the only thing that keeps me off |
Sourcemaps will be in without a doubt! Together with bugfixes this has the highest priority. Due to it's complexity with mixing multple source file and native JS code it will take some time though. |
@miguelgrinberg http://www.transcrypt.org/pong.html NB1. The source of fabric.js is not yet included. |
Nice! Works really well, I can set breakpoints, look at variables, etc. You did a fantastic work. In my opinion, the close to one-to-one translation that you are doing, plus the source maps set Transcrypt apart from the other py-to-js solutions out there. I will be looking into exposing or porting JS frameworks. I'm particularly interested in backbone, because it has a class-based structure that I think translates well into Python. |
It turned out to be quite hard to find a subset of the sourcemap syntax that actually worked in a multi module situation. Would be great if you ported c.q. exposed libs that you judge important! |
Multi-level sourcemaps now supported |
Hello,
I added your site here: http://www.transpilers.io
Hope it will bring you many visitors !
Benj
2016-04-13 8:01 GMT+02:00 Jacques de Hooge <notifications@github.com>:
… Sourcemaps will be in without a doubt!
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
<https://github.com/JdeH/Transcrypt/issues/18#issuecomment-209241666>
|
Good action, thank you! |
Chrome's debugger supports the use of source maps, which produce a mapping from the minified code that is being executed to the source files that produced it. When source maps are used, you can step through the original code and even set breakpoints, while Chrome internally executes the minifiied code.
Javascript transpilers such as Babel, TypeScript and coffeescript all support generating source maps to allow the developer to see the source files in Chrome and not the generated JS. Recent builds of Chrome have source maps enabled by default.
It would be a killer feature to have source maps for Transcrypt generated code, so that you can work with Python in the Chrome debugger.
The text was updated successfully, but these errors were encountered: