在每个Eclipse调试自动清除LogCat中/运行? [英] Automatically clearing LogCat on each Eclipse Debug/Run?

查看:426
本文介绍了在每个Eclipse调试自动清除LogCat中/运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望这是一个简单的任务,但我很惊讶地发现没有答案这一点。

I expected this to be a simple task, but I'm surprised to find no answers for this.

让我澄清一下:

  • 我不想叫亚行logcat -c 手动。其实,我还没有使用命令行查看LogCat中,所以我不认为这是 可能(编辑:实际上,它是由一个单独的命令行运行命令,但我不想这样做)的。我使用Eclipse来查看LogCat中。

  • I do not want to call adb logcat -c manually. In fact, I'm not even using the command line to view LogCat, so I don't think this is possible (edit: actually, it is, by running the command in a separate command line...but I don't want to do that). I'm using Eclipse to view LogCat.

我不想点击按钮清除日志各一次。这就是我现在做的。

I do not want to click button Clear Log each time. That's what I'm doing now.

,编程或通过Eclipse的运行/调试配置,或者然而,想办法为自动清除LogCat中每个 一次,我打<大骨节病>控制 + <大骨节病> F11 运行我的Andr​​oid项目。我的LogCat中越来越混乱。 <大骨节病>控制 + <大骨节病> F11 并不重要 - 这只是我的快捷方式调试。我希望搞清楚LogCat中的调试/运行。

I do, programatically or through Eclipse's Run/Debug configurations or however, want a way to automatically clear LogCat each time I hit Ctrl+F11 to run my Android project. My LogCat is getting cluttered. Ctrl+F11 isn't important - it's just my shortcut to Debug. I'd like to clear LogCat on Debug/Run.

我使用的Eclipse在Windows 7和调试用的Nexus One(不是模拟器)。

I'm using Eclipse on Windows 7 and debugging with a Nexus One (not an emulator).

我已经试过:

  • 修改调试/运行配置。 (项目 - > 属性 - > 运行/调试设置 - > 编辑启动配置)从模拟器中运行是添加其他仿真器的命令行选项的唯一途径。 但是的我是从实际的Andr​​oid设备上运行,所以我不能访问这些选项。

  • Modifying Debug/Run configurations. (Project -> Properties -> Run/Debug Settings -> Edit Launch Configurations) Running from the emulator is the only way to add Additional Emulator Command Line Options. But I'm running from the actual Android device, so I can't access those options.

建设者?我不知道怎么用这个。 (项目 - > 属性 - > 建筑工地)。我将如何使用这个每次清除LogCat中我跑?

Builders? I wasn't sure how to use this. (Project -> Properties -> Builders). How would I use this to clear LogCat each time I run?

我开始觉得我必须写一个宏程序挂接<大骨节病>控制 + <大骨节病> F11 当活动前台进程是的eclipse.exe 将我的光标到清除日志按钮,单击它。我猜结算LogCat中自动实在是太多了,要求。

I'm beginning to think I have to write a macro program to hook Ctrl+F11 when the active foreground process is eclipse.exe to move my cursor to the Clear Log button and click it. I guess clearing LogCat automatically is too much to ask for.

推荐答案

如果你不锁定,因为一些充分的理由来使用Eclipse,你可以尝试的IntelliJ IDEA的IDE。下面是选项为清除日志上运行的应用程序运行配置。不幸的是,下面的 http://youtrack.jetbrains.com/issue/IDEA-80976 它坏了现在,但我认为它会固定在不久的将来。

If you're not locked to Eclipse because of some strong reasons, you can try IntelliJ IDEA as IDE. Here is option for run configuration for clear log on app run. Unfortunately, following http://youtrack.jetbrains.com/issue/IDEA-80976 it is broken right now, but I think it'll be fixed in near future.

这篇关于在每个Eclipse调试自动清除LogCat中/运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆