Popup Debug
response.write is okay for simple debugging but can become intrusive and cause formating problems itself. This simple script will display your debuging in a pop up window.
AI
Podsumowanie AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
Kod źródłowy
Include this function into your ASP page by pasting or prerably #include ing it.
'*************************************************
'* FUNCTION: popupDebug(name,value)
'*
'* PURPOSE: Displays a client side popup window with debug information
'*
'* INPUT: name, used to identify debug. value, debug value to display
'*
'* RETURNS: None.
'*
'* NOTES: Asterisks are displayed each side of the debug value for clarity
'*
'* AUTHOR: Chris Graham
'*
'*************************************************
function popupDebug(name,value)
%>
<script type="text/javascript" Language="JavaScript"><!--
<!--
alert("popupDebug name=<%=name%> value=*<%=value%>*");
-->
</script>
<%
if response.buffer=true then response.flush
end function
'*************************************************
%>
Call it in the following way
<%
dim code
code=1
popupDebug "code should be 1",code
code=code+1
popupDebug "code should have incremented",code
%>
Oryginalne komentarze (3)
Odzyskane z Wayback Machine