|
||||||||
a_debug.rb - for embedding debug statements in Ruby code
Copyright: (C) 2000, 2001, 2002 Seva Inc. and Seva Software - www.sevasoftware.com
License: Same as Ruby
This module provides two methods (debug and dfh) that I like to use to embed debugging statements into my ruby code. The following command line arguments can be used when running your programs:
debug_level 20
debug_level 99
debug_filter "MyClass|myFunction" debug_filter MyClass
The debug_filter is converted to a regexp and every debug is matched against before it is printed. The first examples will print if first argument of the debut matches the text MyClass or myFunction. This allows you to debug a particular class or module and include any other function calls (assuming the first parameter of your debug is dfh(). The second example will report only MyClass debug statements.
| Required files |
| Classes and Modules |
| Seva Software |
Thank you for taking the time to visit this web page. I trust you found the information contained in this page useful.
Please email any questions, concerns, or issues with this web site to webmaster@sevasoftware.com.
Please remember Seva Software when your company would benefit from an experienced database architect and software engineer.