print-debugger-1.1.9: Debug print formatting library.

Safe HaskellNone
LanguageHaskell2010

Debug.Print.StackTraceDebug

Synopsis

Documentation

debugMode :: Bool Source

Set to False and recompile in order to disable print statements with stack traces.

debugTraceIO :: (?loc :: CallStack) => String -> IO () Source

Prints message with a one line stack trace (formatted like a Java Exception for IDE usability). Meant to be a substitute for Debug.Trace.traceIO

fatalAssert :: (?loc :: CallStack) => Bool -> String -> IO () Source

Kills the application and prints the message with a one line stack trace (formatted like a Java Exception for IDE usability) if assertion is false and "debugMode" is True. Can be used as a substitute for "assert" when used in a Java based IDE or when the killing of the entire application is warranted.

prt :: (?loc :: CallStack) => String -> IO () Source

Shorthand for "debugTraceIO". Prints a message with a formatted stack trace.

test :: IO () Source

This method tests the "debugTraceIO" function.