python - 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?
解决方案
这是一个请求的功能,但尚未实现。gdb bug中有一些讨论。
一个临时选项可能是一个停止钩子bt 1
。但这可能有点侵入性。
推荐阅读
- pandas - 用字典覆盖数据后保存csv
- python - 如何在 Mac 上安装 pyaudio?
- spring - Spring 5 中的 .csrf() 方法现在位于哪个包中?
- mysql - 管道 | 运算符在带有 Heidi SQL 数据库的 MySQL ( phpmyadmin) 中不起作用
- r - $ 中的错误:“闭包”类型的对象在闪亮的应用程序中不是子集
- pytest - pytest:如果一起运行多个测试失败,但一个接一个运行成功
- python - 如何确定提交是否进入稳定版本(TensorFlow)
- xslt - 使用 XSLT 从 JSON 输出中提取特定字段
- wordpress - Wordpress:获取帖子但不是完整的 WP_Post 对象
- powershell - 使用 Powershell 从日志文本中提取用户名