Solved.
Need to add
context->setAllTensorsDebugState(true);
after
static DebugPrinter debug_listener; context->setDebugListener(&debug_listener);