I'm trying to log a local variable in an external script that is called on the page. If I place a breakpoint I can see its values, but it becomes inaccessible if I make the code start again. Is there any way to do this?
-
1Hi, maybe I don´t understand your question, but is it console.log(variableName) your looking for? The variable/object will be printed in the console.Rikard– Rikard2019-01-05 19:37:07 +00:00Commented Jan 5, 2019 at 19:37
-
To better clarify, I'm asking if it's possibile to log a local variable without stopping the code execution, like in this case developer.mozilla.org/it/docs/Web/JavaScript/Reference/Errors/…fuomag9– fuomag92019-01-05 19:53:15 +00:00Commented Jan 5, 2019 at 19:53
Add a comment
|