support legacy enable of stack-trace using DebugMode property