Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

safari and chrome javascript console multiline

Firebug has a multiline feature in their console tool. Is there a way to get this functionality with the debugger tool in Safari/Chrome?

like image 832
minimalpop Avatar asked Mar 17 '10 19:03

minimalpop


People also ask

How do I write multiple lines of Javascript in chrome console?

If you want to write multiple lines of commands in the Chrome console, first open the console (CMD + Shift + J on Mac / CTRL + Shift + J on Windows). Now while inside the Console, write any line of code, and then hold down Shift + Enter.

When using the developer tools What command can you use to create a multi line Javascript snippet?

Focus your cursor somewhere inside of DevTools. Press Control+Shift+P or Command+Shift+P (Mac) to open the Command Menu. Start typing Snippet , select Create new snippet, then press Enter to run the command. Figure 7.

How do I use console in Chrome?

To open the developer console in Google Chrome, open the Chrome Menu in the upper-right-hand corner of the browser window and select More Tools > Developer Tools. You can also use Option + ⌘ + J (on macOS), or Shift + CTRL + J (on Windows/Linux).

How do I add console log to my browser?

Adding a console log is something Google recently add. In the selected row instead of left click,click right click and select 'add logpoint', a small text box will pop up, enter the variable you want you console log. If you do not see this feature update your browser. Thanks for the answer!


1 Answers

Shift-Enter on Windows allows multi-line entry where Option-Enter works on Mac.

A more fully featured editor is in the works.

like image 134
MrBester Avatar answered Sep 20 '22 20:09

MrBester