debug-trace initial (fork from console-trace)