Using Intellij IDEA v12.0.4.
When stepping through JavaScript code (usually F7), variables will often disappear after their values are set. Using the following as an example:
01 var funca = function() {
02 var farray = [];
03 var i;
04 for (i = 0; i <= 4; i++) {
05 farray[i] = i;
06 }
07 return farray;
08 }
09 var fay = funca();
10 var x = fay[2];
The variable 'fay' in line 09 is visible in the 'Variables' window until the assignment is complete. Then it disappears.
Hovering over 'fay' in line 09 causes a popup to appear, indicating that it still exists and suggesting that its value can be displayed. However, clicking the '+' only causes the popup to disappear. The array 'fay' is not displayed. Placing a comment after the assignment corrects this and allows the array to be displayed using the popup.
Q. Why does 'fay' disappear?
Q. If it is normal for 'fay' to disappear a) where does it go, and b) is there an Intellij IDEA configuration setting that controls the disappearance or allows them to appear in either the 'Variables' window or other window?
Q. Is the inability to display 'fay' by using the hover and click method a bug?
Q. Is Intellij IDEA the best JetBrains IDE for JavaScript development?
I am new both to Intellij IDEA and to JavaScript, so if there is documentation that covers questions like these, please just point me to it.
Thanks.