How can I change this DEBUG code to correspond to the window object as well?
What is the JavaScript equivalent of var_dump or print_r in PHP?
OK
var hoge = new Object(); hoge.q = "stack"; hoge.lang = "js"; hoge.state = 1; dump(hoge, 'body');
ERROR
dump(hoge, this);
ERROR
dump(hoge, 'window');