4

I'm running into a bug when working with facebook's all.js. I get the line number of the bug, but that line is wow huge. Does facebook provide a "non-minified" version of that all.js file? That would really help me figure out what is going on and step through it..

Related: Tool to Unminify / Decompress JavaScript <-- this link does the trick, but I'm wondering if anyone knows of a de-minified version that is provided by facebook. De-minifying it myself might introduce bugs which would cause me to chase down bugs that don't exist in the original source code.

Community
  • 1
  • 1
jcollum
  • 43,623
  • 55
  • 191
  • 321
  • A handy tip for this is to use the Chrome 'pretty print' button - click the button with { } in the bottom left of a source tab in DevTools. That said, it's not perfect, that's why I'm here :) – Matt Lyons-Wood Mar 02 '16 at 09:07
  • Yes, very handy. Wish it was around when I needed it 4.5 years ago. – jcollum Mar 02 '16 at 17:49

2 Answers2

7

Latest update on 2013:

Facebook has removed the source from GitHub, instead they provide the debug version (non-minfied) from the link below:

http://connect.facebook.net/en_US/all/debug.js

chaco
  • 146
  • 4
  • 6
1

The source code is available on github, as mentioned on the Facebook javascript sdk page.

bkaid
  • 51,465
  • 22
  • 112
  • 128
  • 1
    The GitHub repo is no longer maintained. Use http://connect.facebook.net/en_US/all/debug.js instead. – Old Pro Jan 09 '14 at 23:16