I am debugging my code but the Debug tools are not clickable (i.e Step in , Step out , resume etc).I might have changed the settings accidently , but I dont know where to reset it .
I am new to use Eclipse and android , Please help me
Simply put, you can run your code in Debug Mode by pressing only F11 or clicking that little bug on the top of the screen. Use F5 to trace into, F6 to step over, CTRL-SHIFT-B to set/remove breakpoints.
Breakpoints To define a breakpoint in your source code, right-click in the left margin in the Java editor and select Toggle Breakpoint. Alternatively, you can double-click on this position. The Breakpoints view allows you to delete and deactivate Breakpoints and modify their properties.
Figure 4-2. The Debug view lets you control and monitor execution of multiple programs and threads. To continue running after a breakpoint, click on the Resume button in the Debug view's toolbar ( ) or press F8 (Run → Resume). Execution will continue until the next breakpoint is hit or the program terminates.
In the "Debug" perspective, there is a "Debug" view which shows the threads of the application being debugged:
There's a little menu in the top right corner, with an option "Show Debug Toolbar". Select that, et voilá:
Sometimes it helps to clean the eclipse workspace - just start eclipse with -clean and the debug buttons work again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With