【发布时间】:2020-07-07 14:45:25
【问题描述】:
我按照说明安装了以下网站中提到的 Python 漂亮打印机。 https://sourceware.org/gdb/wiki/STLSupport
我签出了E:\Project 目录中的python 模块。我创建了一个.gdbinit 文件并将路径替换为E:\Project\python,最后将文件放在C:\Users\username 文件夹中。 (我什至尝试将其放入当前工作目录E:\Project)。
无论哪种情况,我似乎都会收到以下消息:
PS E:\Project> gdb .\practise
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from E:\Project\practise.exe...done.
warning: File "E:\Project\.gdbinit" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
add-auto-load-safe-path E:\Project\.gdbinit
line to your configuration file "$HOME/.gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "$HOME/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
info "(gdb)Auto-loading safe path"
我尝试在.gdbinit 文件中添加行set auto-load safe-path /,但它继续显示相同的消息。
很少有关于 MinGW 的漂亮打印机的帖子。以下帖子中提到的方法也不起作用。 How do I load .gdbinit on gdb startup?
谁能帮我让 Python 漂亮的打印机在 Windows 上与 MinGW 一起工作?
【问题讨论】:
标签: python windows gdb mingw pretty-print