Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Eclipse interactive console in debug

Tags:

I'm trying to play with debug in Android app and, when a breakpoint is encountered, Eclipse shows me a lot of windows, one of which is the "Interactive Console" with a prompt: I think to be able to enter statements and/or other stuff, but it seems to be disabled. How can I work with it?

like image 437
Cris Avatar asked Apr 07 '11 10:04

Cris


Video Answer


2 Answers

Window - Show View - Debug - Display

That will provide you with a window to enter statements and execute/inspect them. This is a feature that's available in core eclipse platform. It works in most cases for Android based projects as well.

More info on the display view can be found here : http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/views/debug/ref-debug_view.htm

For a nice overview of the debugging features of Eclipse, check out this post : http://www.cavdar.net/2008/09/13/5-tips-for-debugging-java-code-in-eclipse/

like image 193
ddewaele Avatar answered Sep 30 '22 17:09

ddewaele


The "Interactive Console" within the Debug View of Eclipse is used whenever the debugged program expects some input from the console.

like image 45
Jonathan Heinen Avatar answered Sep 30 '22 18:09

Jonathan Heinen