Consider the following scenario:
Notes
- You create an HTML webpage in Microsoft Visual Studio 2010 that uses the eval function. The eval function’s argument contains JavaScript code.
- You open the webpage in Windows Internet Explorer 7 (IE7), in Internet Explorer 8 (IE8), or in Internet Explorer 9 (IE9).
- In Visual Studio 2010, you attach to the Iexplore.exe process in order to debug the JavaScript code.
Notes
- If you attach to the Iexplore.exeprocess before the webpage is loaded by Internet Explorer, the JavaScript code that is contained in the eval function’s argument is displayed in Solution Explorer. However, you may have to reopen the eval code file to continue debugging if one of the following conditions is true:
- New JavaScript code is added.
- The wrong line is highlighted if a breakpoint is set in the JavaScript code.
- This issue does not occur in Visual Studio 2005 or in Visual Studio 2008.