How to get built-in function definitions in the Chrome JavaScript console

The Chrome JavaScript console used a very useful function, where if you entered the name of any function visible in the current area, it would print the full definition of that function. Essentially as described in this answer here .

Some time ago (I think at least a couple of months, maybe more), this stopped doing this, however, and entering the name of the function now gives a very useless answer, for example:

enter image description here

I know that I can click on this line (or right-click and select "Show Function Definition") to show the functional definition on the Sources tab, but this is very awkward compared to previous definitions of built-in functions (for a workflow, which is usually done on the line "get the definition of the function, copy / paste to the console, change a few things, and then rewrite the definition of the original function").

Another trick is to add + "" after the function name (as in jobClicked + "" instead of jobClicked ), which shows the code in the console, but loses all syntax highlighting.

Is there a way to get the JavaScript console to return to the previous behavior of displaying the full definition of the function inside the JavaScript console with syntactic highlighting intact?

+8
javascript google-chrome console
source share
1 answer

Works in version 54. You can update the Chrome browser.

Example function table:

Function Table Example

Chrome Version:

Chrome version

+1
source share

All Articles