简体   繁体   中英

modify javascript before it gets executed by Safari

I read some old questions about Live Edit in Safari. There was an option to set a breakpoint, double click on the line and edit the code. I am double clicking the code right now, but no luck. How can I edit the javascript code before it gets executed in Safari? Through extensions or in some other way?

In safari, it is not possible to edit the javascript code as you do in other browsers (eg chrome). But you can modify the variable values using Developer Tools in safari (to open: ATL+CTRL+C or Command+Option+C on Mac). All you need to do is apply breakpoints at appropriate lines and modify the variables using console in Developer Tools.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM