I want advanced tools for debugging minified code #135
aarongustafson
started this conversation in
Wants
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are developing a content-rewriting proxy at my company, so we are re-generating HTML, CSS, and JavaScript on the fly. When debugging issues, I often have to trace through someone else's JS code, and most of the time it is minified. In this use case sourcemaps are mostly useless, because 1) most projects don't use them in production; 2) re-generated code cannot use them anyways.
At the moment, Chrome Dev Tools work the best for interactive debugging. Firefox is not as good in beautifying, and is especially quirky when tracing
eval
-ed JavaScript. However, even Chrome provides only basic tools for analysis. It would really help if we could:_()
. During debugging, it should be possible to tell different instances of_()
based on current stack / closure. Then, you could do analyze what this function does, and perform an IDE-like rename operation, and slowly dig your way through the minified mess.This kind of advanced tool would be super useful for security researchers and for library authors who have to deal with minified code.
https://webwewant.fyi/wants/53/
Beta Was this translation helpful? Give feedback.
All reactions