How do I toggle source mapping in Safari 7?
Asked Answered
Z

1

12

The Safari 7 inspector is marvelously line-mapping compiled javascript back to the coffeescript it came from. There are times, though, when I want to interact directly with the compiled javascript in inspector. How do I toggle source mapping off so I can play with the raw javascript?

Zachariahzacharias answered 23/10, 2013 at 18:54 Comment(0)
G
12

In Safari 7, Source Maps are not something that you have to toggle on or off they are just always on like resources are always available in the web developer tool. If you want to jump to the raw source you can:

"...Command-click the file name to jump to the position in the original source file."

The Safari Developer Guide has more info on this.

Geoff answered 6/11, 2013 at 22:11 Comment(2)
Great! Turns out you can also command-click any word / token in the coffeescript and it jumps to that token in the raw javascript. Exactly what I was looking for.Zachariahzacharias
Command clicking a word in the source map does not take me to the original source file. It merely creates additional cursors.Bader

© 2022 - 2024 — McMap. All rights reserved.