user1189352
user1189352

Reputation: 3885

Chrome debugger shows undefined but there really is a value

If you look at the picture, you will see a bunch of variables in the Scope on the right that are undefined. Even when I hover around the "page" variable, it says undefined. But then to the right of it, you also see:

page = Object {controlNode: Object, id: 149... etc etc}

Why is this happening and how can I fix this? Thank you

enter image description here

Upvotes: 7

Views: 2779

Answers (1)

zhm
zhm

Reputation: 3651

You can open console by pressing Esc. Then type page in console. If it really has value, the value will be shown in console window.

If not work, try to add page to Watch list, which is in right panel of Chrome debugger.

Upvotes: 2

Related Questions