Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can auto evaluate in Debug console in VCode?

With PyCharm it is possible to select a piece of code and evaluate directly, without the need to click. That is, just select the piece of code and press the key combination to display the debugger with the variable included and its value. Is it possible to do this in VSCode? I see that if I click ctrl+may+Y open the debuger console, but the variable is not setted.

like image 316
Fernando Avatar asked Sep 14 '25 23:09

Fernando


2 Answers

Go to: File -> Preferences -> Keyboard Shortcuts

Search for Evaluate in Debug Console double click on it.

I tested it for example with Ctrl+Insert

Worked as of August 2020, tested on a Ubuntu 18.04 system

like image 173
Max Avatar answered Sep 17 '25 02:09

Max


add to setting.json

"lldb.consoleMode": "evaluate",

like image 31
murmur Avatar answered Sep 17 '25 04:09

murmur