让eclipse调试我的android PROJECT [英] Make eclipse debug my android PROJECT

查看:67
本文介绍了让eclipse调试我的android PROJECT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Eclipse编写一个Android应用程序。当我点击左侧树视图中的项目,然后单击调试,IDE将构建一个APK,并按预期的方式安装在仿真器/设备中。



但是,如果我在编辑文件之前,请先尝试调试文件,首先点击该项目,IDE会想要调试该特定的Java文件。这不是我想要做的,我希望像往常一样在设备上构建和仿真/安装。



有没有办法在Eclipse中更改此行为?

解决方案

在eclipse中,您可以设置工作区首选项/运行调试/启动,以始终启动以前启动的应用程序(直到您明确选择其他应用程序:那将是最后一个应用程序)。



这样,无论您按哪里(ctrl)F11或单击调试/运行按钮,您最后使用的启动配置将再次被调用。



您还可以通过显式调用其启动器(现在调试方式)启动不同的应用程序。




I am writing an Android application using Eclipse. When I click on the project in the left tree view and then click debug, the IDE builds an APK and installs in the emulator / device as expected.

However, if I'm editing a file and forget to first click on the project before attempting to debug, the IDE thinks I want to debug that specific Java file. This is NOT what I want to do, I would like it to build and emulate / install on device as usual.

Is there any way to change this behavior in Eclipse?

解决方案

In eclipse, you can set in workspace preferences / run-debug / launching to always launch the previously launched application (until you explicitly choose an other application: then it will be the last that will be launched).

This way, no matter where you press (ctrl)F11 or click the debug/run button, the launch configuration you used the last time will be called again.

You will still be able to launch different applications of course, by explicitly calling their launchers (the way you debug now).

这篇关于让eclipse调试我的android PROJECT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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