javascriptsafarisafari-web-inspector

Safari Web Inspector - Long string values truncated


In Safari (9.1), I am looking at a long string value (should be about 500 characters), but only shows me the first hundred or so followed by "...".

I think it's just a local setting because I have another machine running safari and I can see more on it. I can't find it nor anything in the Google.

Thanks!


Solution

  • If you log the value to console or copy it (Cmd-C or using right-click context menu), it will not be truncated.

    In many places, Web Inspector needs to truncate values at some point so that the user interface remains, well, "usable" for sites with lots of long strings or few line breaks.