Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to get a REPL in pydev?

I would like to be able to drop to the python REPL from the debugger -- if this is not possible is there an easier way to evaluate python expressions in the context of the current breakpoint other than manually adding them all as watch expressions?

like image 871
John Avatar asked Oct 28 '08 01:10

John


People also ask

How do I get Python REPL?

To start the REPL in VS code, open the command palette and search for and select “Start REPL”. The advantage to starting the REPL from inside VS Code is that it respects the environment you already set up, that is the version of Python you chose earlier.

Is Python interpreter a REPL?

Python provides a Python Shell, which is used to execute a single Python command and display the result. It is also known as REPL (Read, Evaluate, Print, Loop), where it reads the command, evaluates the command, prints the result, and loop it back to read the command again.

What is REPL programming?

A Read-Eval-Print Loop, or REPL, is a computer environment where user inputs are read and evaluated, and then the results are returned to the user. REPLs provide an interactive environment to explore tools available in specific environments or programming languages.

What is a Python REPL environment?

The most straightforward way to start talking to Python is in an interactive Read-Eval-Print Loop (REPL) environment. That simply means starting up the interpreter and typing commands to it directly. The interpreter: Reads the command you enter. Evaluates and executes the command.


1 Answers

There is a dedicated Pydev Console available by clicking on the "New console" dropdown in the console view.

See http://pydev.sourceforge.net/console.html

like image 158
Dag Høidahl Avatar answered Oct 06 '22 00:10

Dag Høidahl