Closed tiye closed 11 years ago
I can't reproduce this. It's working for me. Maybe a video would help?
A video here. Linux is not so good at capturing screen... only got a .mpg
file
https://www.dropbox.com/s/jzlwj58jvq1fd3r/out.mpg
Failed to upload it to Youtube.. It should be clear enough to see the characters if you play it locally.
And code here, in case you want to point out which line is wrong.. https://github.com/jiyinyiyong/three-quarter
By the way, are those videos on the site below available in the US? I usually upload videos there. http://www.tudou.com/home/item_u56179749s0p1.html
update:
By typing "show" I mean "slow" when using NPM and Git.. video takes too long time - -!
Hmm, it looks like your browser might not support the newer sourcesContent
field of the source map. Can you list the name and version of your browser along with the platform you're running it on? Did you build it from source or grab a binary distribution?
Archlinux Chrome Version 28.0.1500.5 dev
Package from https://aur.archlinux.org/packages/google-chrome-dev/ via yaourt -S google-chrome-dev
I'm not sure if I can help you any further. I did notice that there's no "enable source maps" option anywhere in the settings that you briefly show. The version you have should support source maps and sourcesContent
, though. I'd confirm that source map support is enabled.
SourceMaps is on all the time since I learnt Browserify. Before I record that video I was using -s build.map
to debug my code and it should be right. Anyway -s
is enough for debugging.
I found there's google-chrome-dev-28.0.1500.20-1
available. I will add comment here if that begin to work after upgrading.
Too early to try that :p I wrote
console.log
andmain.coffee:2
is printed in the console, but as I click that link, I will jump to a wrong path ofmain.coffee
.The command I compile it with:
content of
main.coffee
Folder structure:
The url I debug my page:
by clicking the line number after
console.log
, jump to the url:no such a file. Tried to visit from filesystem, still fail. Right url of coffee should be:
The generated js file
BTW, do you test your pages by serving them with a Node server?