简体   繁体   中英

Eclipse + breakpoints = nothing happens

I'm trying to use Breakpoints in Eclipse, but when I set them - nothing happens. Really. For example in MVS when the program reachs breakpoint it stopps and I can see variables.

How to use breakpoints in Eclipse in the same way?

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

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: 在此处输入图片说明

Then in Debug perspective you can trace/watch value of your desired variable by pressing 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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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