在Gogland中禁用调试输出。

huangapple go评论143阅读模式
英文:

Disable debug output in Gogland

问题

在更新到最新的Gogland版本后,在我的调试控制台中看到了以下信息:

GOROOT=/usr/local/go
GOPATH=/Users/mayvas/GoProjects
/usr/local/go/bin/go build -o /private/var/folders/m5/gqb1s0q579b6bdz7hdjwmf7r0000gn/T/___go_run_addressbook_go /Users/mayvas/GoProjects/src/gitlab.yarmel.com/mayvas/meafex/addressbook.go
/private/var/folders/m5/gqb1s0q579b6bdz7hdjwmf7r0000gn/T/___go_run_addressbook_go

是否可以禁用这个?我使用的是小屏幕分辨率,这些信息对我来说没有用。

谢谢!

英文:

After updating to the last Gogland release in my debug console I see such information

GOROOT=/usr/local/go
GOPATH=/Users/mayvas/GoProjects
/usr/local/go/bin/go build -o /private/var/folders/m5/gqb1s0q579b6bdz7hdjwmf7r0000gn/T/___go_run_addressbook_go /Users/mayvas/GoProjects/src/gitlab.yarmel.com/mayvas/meafex/addressbook.go
/private/var/folders/m5/gqb1s0q579b6bdz7hdjwmf7r0000gn/T/___go_run_addressbook_go

It is possible to disable this? I use small screen resolution & this info not useful for me.

在Gogland中禁用调试输出。

Thank you!

答案1

得分: 4

  1. 打开帮助 | 查找操作...
  2. 输入"注册表"并按回车键。
  3. 在那里找到"go.run.processes.with.pty"并将其关闭。

现在,IDE将折叠这些信息,并使其看起来更整洁。

英文:
  1. Open Help | Find Action...
  2. Type Registry and hit Enter.
  3. Find go.run.processes.with.pty there and turn it off.

Now IDE will fold those information and will make it look cleaner.<hr>
在Gogland中禁用调试输出。

<hr>

答案2

得分: 2

在@dlsniper提到的问题得到修复之前,您可以使用以下解决方法:

文件 | 设置 | 编辑器 | 通用 | 控制台中,将GOPATH=, GOROOT=等内容添加为代码折叠标记。就像这样:

在Gogland中禁用调试输出。

之后,输出将会像这样显示:

在Gogland中禁用调试输出。

英文:

Until the issue that @dlsniper mentioned got fixed, you can use following workaround:

Add GOPATH=, GOROOT=, etc. as a code folding marker in File | Settings | Editor | General | Console. Like this:

在Gogland中禁用调试输出。

After that output will look like this:

在Gogland中禁用调试输出。

答案3

得分: 1

在更新到最新的Gogland版本后,在我的调试控制台中看到了这样的信息。

最新版本只添加了GOROOT行,其他信息之前就有了。

目前无法隐藏/禁用这些信息,您只能清除控制台。不过,看起来您已经禁用了“滚动到末尾”选项,该选项位于运行窗口中的“打印”按钮的右上方。这样,当输出的垂直长度大于控制台大小时,它会通过滚动视图自动隐藏输出。

我已经为您填写了https://youtrack.jetbrains.com/issue/GO-4452,请在那里关注该问题的更新。

英文:

> After updating to the last Gogland release in my debug console I see such information

The latest version added just the GOROOT line, all other information was there before.

> It is possible to disable this? I use small screen resolution & this info not useful for me.

At the moment you cannot hide / disable that information, you can only clear the console. However it looks like you've disabled the Scroll to end option, the button right above the Print in the run window. That should hide the output automatically for you by scrolling the view whenever the output vertical length is bigger than what the console size is.

I've filled https://youtrack.jetbrains.com/issue/GO-4452 for you, please watch the issue there for updates

huangapple
  • 本文由 发表于 2017年9月8日 03:31:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/46103808.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定