如何在没有选项的情况下阻止 XCode 调试器自动完成?
调试器确实在困扰我。每次我尝试输入 po ... 命令时,它都会自动完成(不给我任何选项),并且我最终会输入诸如 po [selfelf
等内容,直到我发疯。有什么办法可以阻止这种情况,或者总是给我像标准编辑器一样的自动完成弹出窗口?
The debugger is really (de)bugging me. Every time I try to type a po ... command, it autocompletes (without giving me any options) and I end up typing stuff like po [selfelf
and so on until I go mad. Is there any way of stopping this, or of always giving me the autocomplete popup like in the standard editor?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这个答案适用于 GDB 调试器,它不再是 Xcode 使用的标准调试器
这是通过将以下行添加到“readline init 文件”(默认情况下,我认为不存在)来实现的)。我创建了文件
~/.inputrc
并将以下文本放入其中:This answer applied to the GDB debugger which is no longer the standard debugger used with Xcode
This is achieved by adding the following line to the "readline init file" (which, by default, I think does not exist). I created the file
~/.inputrc
and put the following text in it:嗯,接受的答案有点矫枉过正。
这个问题的答案怎么样:
Hmm, the accepted answer is kind of overkill.
How about the answer provided to this question: