首页 > 解决方案 > Apply GDB FrameDecorator when stepping

问题描述

I've written a frame filter that applies a FrameDecorator object to all frames, and it works for backtraces (when using the bt command). However, when I use up, down, or explicitly go to a frame like f 0, gdb prints the undecorated frame.

Is there a way to always apply a FrameDecorator even when stepping through frames?

标签: pythongdbgdb-python

解决方案


这是一个请求的功能,但尚未实现。gdb bug中有一些讨论。

一个临时选项可能是一个停止钩子bt 1。但这可能有点侵入性。


推荐阅读