Skip to content

Debugging class written for Classic ASP, logging events and Try/Catch/Release functions

License

Notifications You must be signed in to change notification settings

onlinesimon/debug.class.asp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

debug.classic.asp

Debugging class written for Classic ASP, logging events and Try/Catch/Release functions

Use:
Include the _debug.asp file at the beginning of your Classic ASP page, using:

<!-- #include virtual="/_debug.class.asp" -->

After the class is included, and at the beginning of your code, add:

set Debug = new Debugger
Debug.Initialise(true)

Use true to enable the debug mode, or false to disable debug mode.

Available functions:

Debug.Logs(m)

m = text string to output as a debugging message.

Debug.Var(m,v)

m = text string,
v = value (string.)
Useful for outputting the value of a variable.

Debug.Try

Enable trap.

Debug.Catch

Returns: true/false,
Test to trap any errors.

Debug.Release

Disable trap.

Debug.Break

Stop running the Classic ASP page at this break point.

Debug.Continue(url)

If Debug.Mode is true (enabled), then prompt the user if they want to continue, by using the url link.
(This is useful for AJAX pages, which automatically want to return or load another page without pausing.)

set Debug = nothing

Close the class and release memory (at the end of your code.)

About

Debugging class written for Classic ASP, logging events and Try/Catch/Release functions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published