Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 966
user1189352 Avatar asked Oct 29 '22 10:10

user1189352


1 Answers

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.

like image 140
zhm Avatar answered Nov 09 '22 07:11

zhm