Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

immediate window

Is there anyplace in the eclipse ide that I can enter immediate code while stoped at a breakpoint?

thanks

like image 288
bugzy Avatar asked Jan 06 '10 15:01

bugzy


People also ask

What is difference between immediate window and window?

The differences between the Command and Immediate windowsThe Command window can load dlls or packages into the IDE as well. The Immediate window, on the other hand, is solely used during debugging and is useful to execute statements, print values of a contextual variable, or even evaluate expressions.

How do I call an immediate window in VBA?

Open the VB Editor. Press Ctrl-G to give focus to the immediate window (or click the View option in the menu and then click on immediate window)

Is there an immediate window in Visual Studio code?

There is no Immediate Window unlike Visual Studio in VSCode. But you can still execute Javascript in VSCode. Open the JavaScript file in VSCode, then use shortcut Ctrl + Alt + N , the code will run and the output will be shown in the Output Window.


2 Answers

It's called the Display window in Eclipse. Menu Item: Window/Show View/Display

To run command you need to type then select the text in the display window and select one of the two J icons in the window.

like image 130
Crispy Avatar answered Oct 05 '22 02:10

Crispy


Note: as mentioned in Debugging with the Eclipse Platform, you can use the Display View to scrapbook your live code.

Meaning, while you have a live debug session:

live debug session

, you can run/debug some expressions or code in a Display view:

display view

Example:

Example


See My favorite Eclipse view

  • To execute the code and display the returned value, push the button with a "J":
  • If you just want to execute some code that doesn't return a value, push the button with an arrow ">" and a "J":

The standard output will be printed to the Console view.

like image 32
VonC Avatar answered Oct 05 '22 02:10

VonC