Update the `debugger` tool to use structured message printing mechanism