I'm using Timeline in Chrome Developer Tools to help write a userscript. The timeline shows which functions are called, but not what values are actually passed to the parameters:
Is there a way to view the actual function that was run, including its values? I'm looking for any solution that will help me do this, even outside of Chrome.
Open
Sources
tab atDevTools
, selectSnippets
tab at left, right-click and selectNew
, place text of function in middle window, returnarguments
from defined function, select text of function in middle window, right-click and selectAdd to Watch
. At right window atWatch Expressions
selected named function should be listed on left followed by how function is called, e.g.,fn("abc", "def")
followed by: Arguments[n]
indicating and listingarguments
passed to function wheren
is number ofarguments
passed; e.g.,Arguments[2]
forfn("abc", "def")