简体   繁体   English

Eclipse +断点=没有任何反应

[英]Eclipse + breakpoints = nothing happens

I'm trying to use Breakpoints in Eclipse, but when I set them - nothing happens. 我试图在Eclipse中使用Breakpoints,但是当我设置它们时-没有任何反应。 Really. 真。 For example in MVS when the program reachs breakpoint it stopps and I can see variables. 例如,在MVS中,当程序到达断点时,它停止运行,我可以看到变量。

How to use breakpoints in Eclipse in the same way? 如何以相同方式在Eclipse中使用断点?

您需要调试程序,单击运行按钮旁边的小错误,而不是所说的运行按钮

First select Debug perspective as: 首先选择“ 调试”透视图为:

在此处输入图片说明

Then set Breakpoints at places you want: 然后在所需位置设置断点

在此处输入图片说明

After that create a Debug configuration via Debug As->Debug Configurations... and then Debug as Android Application as shown below: 之后,通过Debug As-> Debug Configurations ...创建一个Debug配置,然后作为Android Application进行调试,如下所示: 在此处输入图片说明

Then in Debug perspective you can trace/watch value of your desired variable by pressing F8 : 然后在Debug透视图中,您可以通过按F8跟踪/监视所需变量的值: 在此处输入图片说明 That's it, you can also evaluate expressions through Expressions view. 就是这样,您还可以通过“ 表达式”视图评估表达式。 If it is not enabled select it from: Window->Show View->Other->Debug->Expressions . 如果未启用它,请从以下窗口中选择它: Window-> Show View-> Other-> Debug-> Expressions

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM