T
T
Tenebrius2016-03-04 13:41:16
JavaScript
Tenebrius, 2016-03-04 13:41:16

Why is the script text without line breaks in the developer tools in Chrome?

In the text editor Notepad ++ and in the standard notepad, the script is displayed normally - line by line. And in the chrome console, the script is displayed in a dozen lines, like this:
8603a8aa8ee84346ae89e9fb7a43f7de.png
What could be the reason? Unable to start debugging, sorry.
As you can see on the screenshot, some of the lines, however, are transferred. Why they are, I have no idea.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2016-03-04
@Tenebrius

It is possible that Windows line wrapping is used \r\n, which is recognized in N++, but ignored by Chrome.
In any case, any minified script can be brought to a readable form by clicking on the {}Pretty print button below the script and relatively easy to debug (breakpoints sometimes jump in this mode between the original script and the formatted one).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question