initialize

fun initialize(crashHandlerCommand: ProcessBuilder)

Initialize the Crash Handler and the ThreadExceptionHandler.

This method should invoke only once.

Notice

The pid of current process will be passed to the crash handler through the program arguments!

So please handle the argument correctly, or just use the template code in KStg.CrashHandler Module.

The pid is provided as the last argument.

Before the pid is CrashReporter.reportDir.

Parameters

crashHandlerCommand

the command of the crash handler.