【问题标题】:How to remove the session start code from XCode 3.2如何从 XCode 3.2 中删除会话启动代码
【发布时间】:2009-09-14 22:52:14
【问题描述】:

我最近更新到XCode的新版本,会话开始代码很长,每次运行程序都会出现。有什么办法可以将它缩短到以前版本中的样子? (就第一行)

这就是它现在所说的......

[Session started at 2009-09-14 18:49:17 -0400.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1344) (Fri Jul  3 01:19:56 UTC 2009)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys000
Loading program into debugger…
Program loaded.
run
[Switching to process 1599]
Running…

【问题讨论】:

  • gdb 可执行文件位于 Developer/usr/bin/gdb...有什么方法可以编辑这个文件吗?

标签: xcode macos


【解决方案1】:

我相信这是不可避免的控制台输出。话虽如此,一旦打印了该输出,就可以清除控制台,以便此后为您提供“干净”的应用程序输出。请注意,gdb 通过控制台与您进行通信的地方有很多(例如,breakpoint actions),因此您不想完全静音。

【讨论】:

  • 他们有什么理由添加额外的输出吗?我相信它只打印了此更新之前的第一行。
  • 我猜他们更新了 gdb,它的更新包括这个新的、更详细的输出。
  • 所以我找到了这个developer.apple.com/mac/library/documentation/Darwin/Reference/…,它说我可以输入“安静”来使介绍信息静音。我在终端中打开 gdb 并尝试输入它,它说这是一个无法识别的命令。有没有其他方法可以做到这一点?
  • 我对这些文档的阅读是,它不是gdb 接受的命令,而是必须在启动时传递给gdb 的参数,该参数在XCode 本身内处理。我不知道如何访问传递给gdb 的参数集。
猜你喜欢
  • 2011-02-04
  • 1970-01-01
  • 2011-12-07
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-10-06
  • 2019-09-05
相关资源
最近更新 更多