How to Debug Javascript on Immediate Window
The “Immediate” window is a tool of Microsoft Visual Studio. It allows you to debug code fragments in a variety of languages. This includes Javascript. If you need to debug a Javascript variable, the Immediate window is a quick way to do so. It will scan the variable and everything within it, fixing any problems and notifying you of anything that it cannot automatically fix.
Instructions
-
-
1
Click the “Debug” menu and select “Windows.”
-
2
Click “Immediate.”
-
-
3
Type the following in the text box: >Debug.Print
-
4
Type the Javascript variable to debug after it. For a variable named “var1,” you would now have “>Debug.Print var1”.
-
5
Hit "Enter." This will debug the Javascript.
-
1