rework debugging/tracing features
Merge pull request #662 from guard/fix_kernel_system_debug

rework debugging/tracing features