Library nsedebug
Debugging functions for Nmap scripts.
This module contains various handy functions for debugging. These should never be used for actual results, only during testing.
Copyright© Same as Nmap--See http://nmap.org/book/man-legal.html
Source: http://nmap.org/svn/nselib/nsedebug.lua
Functions
| print_hex (str) |
Print out a string in hex, for debugging. |
| print_stack () |
Print out a stacktrace. The stacktrace will naturally include this function call. |
| tostr (data, indent) |
Converts an arbitrary data type into a string. Will recursively convert tables. This can be very useful for debugging. |
Functions
- print_hex (str)
-
Print out a string in hex, for debugging.
Parameters
- str: The data to print in hex.
- print_stack ()
-
Print out a stacktrace. The stacktrace will naturally include this function call.
- tostr (data, indent)
-
Converts an arbitrary data type into a string. Will recursively convert tables. This can be very useful for debugging.
Parameters
- data: The data to convert.
- indent: (optional) The number of times to indent the line. Default is 0.
Return value:
A string representation of a data, will be one or more full lines.


