tarekahf
tarekahf

Reputation: 1002

Execute commands/code on the fly during debug mode in Eclipse

On Visual Studio while developing using ASP.NET with C# or VB, I used to be able to execute code or call some APIs on the fly using the console or debug window.

I am asking if this can be done using Eclipse while debugging JSP or Java classes, and how?

Tarek

Upvotes: 1

Views: 4276

Answers (1)

M A
M A

Reputation: 72844

The Display view in Eclipse is used to do this. You can open using the shortcut Ctrl+3 and search for Display.

There, you can inspect, evaluate expressions and execute code during the current debug context. To execute code in the view for instance, you would select the code that is typed in the view and press Ctrl+U (the same can be done by right-clicking on the selection and clicking on the appropriate option from the context menu).

Upvotes: 4

Related Questions