I am just refreshing my javascript skill recently and I wonder if does anyone know where in vs2008 we can get the list of the global variable declared in the debugger?
let's see an unsual couple of line inside the <script> block like that:
( function (){
ggg = 999;
return function(){return 0;}
})();
It create a global variable ggg that should hold a value as soon the <script> is loaded along the html page. It works because this global variable is helded into memory using the javacript closure mecanism.
In this case (and in fact also for any global variable ) I have a problem to list these variables from container like typing the this keyword into the quick watch and you get the content of current object . Any idea ? Is there a language keyword that would allow us to see these variables ?
Rick
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5