Currently, I am utilizing an application that utilizes both client-side and server-side code in JavaScript. Debugging the client-side code with a "debugger" statement in Visual Studio 2005 has been successful. However, when attempting to debug the server-side code using the same method, some unusual events occur:
- When debugging, Visual Studio opens with "inetinfo (Running)" displayed in the title bar but does not display any code.
- A blank text document is generated in my text editor (Notepad++) at C:\Windows\System32\^TransientScriptDocument0.txt.
- After returning to Visual Studio, a Find file dialog box appears titled "Find Source: JScript - script block" or "eval code", searching for a filename in the folder inetsrv named "JScript - script block" or "eval code".
- Since the file is not present, I cancel this dialog.
- Another dialog box then pops up stating "There is no source code available at the current location."
- Clicking "OK" on this dialog reveals the main window of Visual Studio with no code displayed. The locals windows shows the variables at the breakpoint and functions can be viewed in the "Call Stack"; however, clicking on them for debugging triggers the message "There is no source code available at the current location" once more.
I would greatly appreciate it if someone could explain: 1. What exactly is happening? 2. What adjustments do I need to make to debug the server-side source code in the same manner as the client-side code?