Debugging Javascript


(Johan Rabie) #1

I created a custom function but there is a bug that i want to debug.
The fact that the javascript on preview is minified makes life pretty hard.
Is there a way I can view a preview with out having minified javascript so that I can use the browser debug tools better?


(Jonathan Deutsch) #2

Sorry, the script is currently encapsulated (to prevent script errors from interfering with the Hype animation - this is all too common) and there’s no way to get better debug information. We definitely acknowledge this as a painful shortcoming, and would like to have a solution in the future.


(www.360FUN.net) #3

this can help a bit…

http://www.jsnice.org


(Mark Hunte) #4

Nice idea but I doubt that will help since Hype is not open source so they will have no idea at guessing what the vars are named


(www.360FUN.net) #5

Better than nothing! :blush:


(Mark Hunte) #6

It’s always good to offer an idea. Hence “Nice idea” so I am not sure I understand your point. :neutral_face:


#7

Maybe it would have been better to put “slightly better than nothing” :wink: