2

I've tried debugging minimalized js code that is not mine.
But it's too hard to debug using chrome's dynamic analyzer tool.
Because all of code is in one line by code minimalizer.
So i can't analyze code's dynamic flow.

What should i do for dynamic analyzing?

crazy_rudy
  • 157
  • 1
  • 9

1 Answers1

0

Debugging "minned" code can be tricky...I would suggest employing the following "reverse engineering" practices (other than contacting the code's owner and asking for a non-minned version...):

  • Add new lines after each semi-colon (";") to the code, so that it will be a little easier to read and will print out the correct line number in the console if their is an exception or error of some sort.
  • After adding new-lines, run the code through a service like http://jsbeautifier.org/ to make it a bit more readable.
  • Try adding "console.log(obj)" calls to the code. This allows "printing" objects to the console for inspection.
BlueYoshi
  • 1,376
  • 11
  • 18