The Dragonfly console also has this mouseover functionality. Also if you look at a DOM element, you can mouse over that to highlight it on the page. So you can see if a variable overrides another, or if fancy closure magic is happening somewhere, or what scope a variable actually originated from. You can also inspect scope and who references what from the "State" sub-tab in the Scripts tab in the same way as you can with the source window. But you are able to do it by hovering the mouse over sections of code so it's really quite easy to keep the code context in mind. When your code hits a breakpoint, you get into a mode where you can, like in many DOM debuggers, interact with the current state of the code you are inspecting. That way I can see where the entry point into the code is when I move my mouse over a specific element. For example, if I wanted to see what happens in jQuery when a mouseover event occurs, I could add an event breakpoint for "mouseover". Event breakpoints are incredibly handy for this because you can set them for almost any user input, or on an element's load. Which is a nice start, but it is still very difficult to understand without some idea of what it looks like during execution.įirst you need to determine what part of a minified file's functionality you are trying to understand. The button I circled here is the pretty printer which suddenly turns the code into something like this: Here is jQuery.min in all it's minified glory. In addition to having a pretty printer, it also has incredibly handy analysis functionality. I have always used Dragonfly for analyzing minified code. But if you are attempting to gain an understanding of it, Opera Dragonfly sounds like a tool you may find very useful. Your question title indicates merely reversing minified code, and not necessarily understanding it. ![]() ![]() Variable renaming is not a big issue, I want it sufficiently readable to be able to analyze the execution. I'm specifically looking to unminify a minified JavaScript file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |