1

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?

2
  • 1
    Hi, 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. Commented 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/… Commented Jan 5, 2019 at 19:53

1 Answer 1

1

that's how you do it console.log(variablename);

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.