M
Mike Brind
Ian said:We seem to have strayed a bit.
Create a file on your web-server:
DebugTest.asp
===========
<% Debug.WriteLine("Hello, world!") %>
Can someone please sum up the IIS options, the ASP options, the programs,
the program options required to view this debug output?
i happen to have the Microsoft Script Debugger installed on my local
machine; and if i have it running while the web-server executes
DebugTest.asp, i do not see any output (at least not in the Call Stack,
Running Documents or Command Windows.)
No - the dubugger has to be on the same machine where the page is
executed. This is why you have to select "Enable ASP server-side
script debugging". ASP scripts are not visible to the client like
client-side javascript is.
i also happen to have Microsoft Visual Studio 2005 installed, and if i have
it running while the web-server executes DebugTest.asp, i do not see any
output. The web-site is in "medium" security (application pooling) mode, and
i do not see any debug output if i have attached the debugger to
dllhost.exe - perhaps i don't have the proper window up in VS2005
(View..Output does not show anything at any rate)
i am (right now) using the Windows XP built-in IIS, and i have configured
the options under
Website
->Properties
-> Home Directory
-> Configuration
-> App Debugging
X Enable ASP server-side script debugging
X Enable ASP client-side script debugging
NOTE: You cannot use the "Internet Information Services" management tool
that comes with Windows XP to set these options, you must use the IIS admin
tool on a Windows Server machine and connect back to your local computer.
The symtpons of it not working are: nothing happens when you push the
"Configuration" button.
I have Windows XP Pro, IIS 5.1. I used the IIS management tool to
configure these options on my machine successfully. I created this
script:
<%
Stop
Debug.Write "Hello World"
Stop
%>
When I ran the page, 'Stop' invoked the debugger (VS2003 in my case) on
the same machine, then I installed the Script Debugger. When I ran the
page again, I got a list of apps to use to debug. When I stepped over
to the final "Stop", the output appeared in the command window of the
script debugger. It will appear in the Output window of VS 2003/5.
It would appear that you need to use the Stop statement to create a
breakpoint to interest the dubugging apps. Or, use the apps to create
the breakpoints. But you must have the app on the same machine as the
web server.