I
Ian Boyd
IIS5, on a Windows 2000 Server machine.
Debeg.WriteLine "Hello, world!"
How can i view it?
Debeg.WriteLine "Hello, world!"
How can i view it?
Ian said:IIS5, on a Windows 2000 Server machine.
Debeg.WriteLine "Hello, world!"
How can i view it?
Mike Brind said:<%
Response.Write "Hello World"
%>
Ian said:I will always cherish the initial misconceptions I had about you.
I know of no debugger for classic ASP-based script that supplies a DebugIan said:IIS5, on a Windows 2000 Server machine.
Debeg.WriteLine "Hello, world!"
How can i view it?
Mike said:That's gone wayyyyyyyyy over my head.
Debeg.WriteLine "Hello, world!"
How can i view it?
<%
Response.Write "Hello World"
%>
If that's the case, you're in the wrong group, and I select number 3 in
the this list (http://www.pushback.com/fun/BestComebacks.html) for you.
object similar to the one used in VB
It turns out that "ASP code" is actually VBScript,
and it looks like
the ASP ISAPI extension for IIS uses the windows scripting engine. One
of the features available in the VBScripting engine is an intrinsic
object called Debug, which has two useful methods
Debug.Write
Referring to your answer to my question: how does <%Response.Write()%>
help me view the output of Debug.Write?
Umm, read my sentence again. Where did I say that I thought you were usingIan said:It's not VB, it's VBScript
ASP uses the scripting engine. The scripting engine has "console
output".
Where does the ASP ISASP plugin for IIS, which is hosting the
scripting engine, redirect any "console" output to?
Ian said:Let me clarify.
i'm coming into "ASP Programming" from C/C++ WinAPI programming.
It turns out that "ASP code" is actually VBScript,
ISAPI extension for IIS uses the windows scripting engine. One of the
features available in the VBScripting engine is an intrinsic object called
Debug, which has two useful methods
Debug.Write
and
Debug.WriteLine
Unfortunaly, i cannot find where the ASP ISAPI extension for IIS puts the
"console output" on the web server; it doesn't output it as
OutputDebugStrings. Nor can i find any generally available "console" for
IIS.
Referring to your answer to my question: how does <%Response.Write()%> help
me view the output of Debug.Write?
Ian Boyd said:Let me clarify.
i'm coming into "ASP Programming" from C/C++ WinAPI programming.
It turns out that "ASP code" is actually VBScript, and it looks like the ASP
ISAPI extension for IIS uses the windows scripting engine. One of the
features available in the VBScripting engine is an intrinsic object called
Debug, which has two useful methods
Debug.Write
and
Debug.WriteLine
Unfortunaly, i cannot find where the ASP ISAPI extension for IIS puts the
"console output" on the web server; it doesn't output it as
OutputDebugStrings. Nor can i find any generally available "console" for
IIS.
Referring to your answer to my question: how does <%Response.Write()%> help
me view the output of Debug.Write?
Bob Barrows said:Umm, read my sentence again. Where did I say that I thought you were using
VB in ASP?
But ASP doesn't, so this is not implemented.
I just tried to debug a vbs file (using the debugger available in VS2003)
containing a debug.write statement and nothing appearred in the Immediate
window. Are you sure this works for vbscript files?
I wasn't debugging ASP. I was debugging a file called test.vbs. No ASPAnthony said:Use the output window set to debug (which is the only choice you have
when debugging ASP).
Anthony said:Use the output window set to debug (which is the only choice you have
when debugging ASP).
Mike said:There is no such thing as "ASP code" as such, in just the same way as
there is no such thing as Dotnet code, for example. ASP is a
server-side technology for dynamically outputting html to the browser.
As Evertjan says, ASP supports a number of scripting languages.
VBScript is one of them, JScript, Javascript and Perl are others.
and it looks like the ASP
Mike said:Large portion of humble pie for me please.
Go to the properties of your application in IIS Management Console, and
click on the Configuration button. On the App Debugging tab, select
"Enable ASP server-side script debugging". That brings the Microsoft
Script Debugger into play (it's installed as part of IIS on Win 2000),
and will display error messages etc on the server (which is what you
asked for). You can start the debugger by using the code that Bob
showed, or by selecting it from Start -> Programs ->Accessories.
I'm not sure that Debug.Write works,
Yeah, i had never tried it. I alwasy just assumed it wouldn't work.Mike said:It does. I downloaded the debugger from microsoft, and debug.write
outputs to the command window.
How can i view it?
In IIS Manager, set Application protection to Low, and go into theIan 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.)
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.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.