Eclipse中是否在所有项目中都有诸如自动填充断点之类的功能? [英] Is there in Eclipse any function like autofill breakpoints in all projects?

查看:62
本文介绍了Eclipse中是否在所有项目中都有诸如自动填充断点之类的功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一些带有按钮的java-screen-app.已配置调试,以便从DB for Local PC连接到开关屏幕.本地PC上的调试源中有许多项目,但是如果我删除一个或多个项目,则调试将使用来自测试服务器的相同项目.我需要在代码中找到要点,在此过程中,单击按钮即可开始.

There is some java-screen-app with buttons. Debug is configurated for switch screens connection from DB for local PC. There are many projects in source of debug on local PC, but if I delete one or more project, then debug will use same projects from test-server. I need to find point in code, where process starts by the buttom click.

通过这种方式,我还有另一种方法可以找到这一点,但这并不简单.

By the way I have another way to find this point, but it isn't simple.

推荐答案

查找特定用户操作执行的Java代码,您可以使用差异代码覆盖范围 EclEmma 的功能(包含在最新的Eclipse Java包):

To find which Java code is executed by a specific user action you can use the differential code coverage function of EclEmma (included in the latest Eclipse Java packages):

  1. 以覆盖模式启动Java应用程序
  2. 通过使用选项在转储上重置来转储覆盖范围数据来重置已收集的覆盖范围数据(请参见
  1. Launch your Java application in coverage mode
  2. Reset already collected coverage data by dumping coverage data with the option Reset on Dump (see Dump Execution Data button in the Coverage view)
  3. Execute the function in your application
  4. Dump the coverage data again

结果:该功能已执行的代码显示为已覆盖.

Result: The code that has been executed by the function is shown as covered.

观看这是17:41的视频进行演示.

这篇关于Eclipse中是否在所有项目中都有诸如自动填充断点之类的功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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