Dump Tools
Dump things for debugging
dumpEnvironmentUnsafe
Output the environment shamelessly (not secure, not recommended)
Usage
dumpEnvironmentUnsafe [ --maximum-length maximumLength ] [ --skip-env environmentVariable ] [ --show-skipped ] [ --help ]
Output the environment shamelessly (not secure, not recommended)
Arguments
--maximum-length maximumLength- PositiveInteger. Optional. The maximum number of characters to output for each environment variable.--skip-env environmentVariable- EnvironmentVariable. Optional. Skip this environment variable (must match exactly).--show-skipped- Flag. Show skipped environment variables.--help- Optional. Flag. Display this help.
Return codes
0- Success1- Environment error2- Argument error
dumpEnvironment
Output the environment but try to hide secure value
Usage
dumpEnvironment [ --maximum-length maximumLength ] [ --skip-env environmentVariable ] [ --show-skipped ] [ --secure-match matchString ] [ --secure-suffix secureSuffix ] [ --help ]
Output the environment but try to hide secure value
Arguments
--maximum-length maximumLength- PositiveInteger. Optional. The maximum number of characters to output for each environment variable.--skip-env environmentVariable- EnvironmentVariable. Optional. Skip this environment variable (must match exactly).--show-skipped- Flag. Show skipped environment variables.--secure-match matchString- String. Optional. If an environment variable matches any case-insensitive part of this string, then hide it. If nothing specified, uses asecretkeyandpassword. If one value is specified the list is reset to zero. To show all variables pass a blank or-value here.--secure-suffix secureSuffix- EmptyString. Optional. Suffix to display after hidden arguments.--help- Optional. Flag. Display this help.
Return codes
0- Success1- Environment error2- Argument error
dumpPipe
Dump a pipe with a title and stats
Usage
dumpPipe [ --symbol symbol ] [ --tail ] [ --head ] [ --lines ] [ --vanish file ] [ name ]
Dump a pipe with a title and stats
Reads standard input
text
Writes to standard output
formatted text for debugging
Arguments
--symbol symbol- Optional. String. Symbol to place before each line. (Blank is ok).--tail- Optional. Flag. Show the tail of the file and not the head when not enough can be shown.--head- Optional. Flag. Show the head of the file when not enough can be shown. (default)--lines- Optional. UnsignedInteger. Number of lines to show.--vanish file- Optional. UnsignedInteger. Number of lines to show.name- Optional. String. The item name or title of this output.
Return codes
0- Success1- Environment error2- Argument error
dumpBinary
Dumps output as hex
Usage
dumpBinary
Dumps output as hex apt-get: xxd
Reads standard input
binary
Writes to standard output
formatted output set to ideal consoleColumns
Arguments
- none
Return codes
0- Success1- Environment error2- Argument error
dumpHex
Output to hex
Usage
dumpHex [ --size size ]
Output to hex
Arguments
--size size- Integer. Output at most size bytes of data.
Return codes
0- Success1- Environment error2- Argument error
dumpFile
Output a file for debugging
Usage
dumpFile fileName0 [ fileName1 ... ]
Output a file for debugging
Reads standard input
text (optional)
Writes to standard output
formatted text (optional)
Arguments
- none
Return codes
0- Success1- Environment error2- Argument error
dumpLoadAverages
Print the load averages
Usage
dumpLoadAverages [ --help ]
Print the load averages
Arguments
--help- Optional. Flag. Display this help.
Return codes
0- Success1- Environment error2- Argument error
debuggingStack
Dump the function and include stacks and the current environment
Usage
debuggingStack [ -x ] [ --me ] [ --exit ]
Dump the function and include stacks and the current environment
Arguments
-x- Optional. Flag. Show exported variables. (verbose)--me- Optional. Flag. Show calling function call stack frame.--exit- Optional. Flag. Exit with code 0 after output.
Debugging settings
Append to the value of BUILD_DEBUG (a comma-delimited (,) list) and add these tokens to enable debugging:
debuggingStack-debuggingStackshows arguments passed (extra) and exports (optional flag) ALWAYS
Return codes
0- Success1- Environment error2- Argument error
Environment
- BUILD_DEBUG - CommaDelimitedList. Constant for turning debugging on during build to find errors in the build scripts. Enable debugging globally in the build scripts. Set to a comma (
,) delimited list string to enable specific debugging, ortruefor ALL debugging,false(or blank) for NO debugging.
Requires
printf usageDocument throwArgument