Unity 3d - How to run code (debug) in real time in VSCode

I’m using Unity 3D with VScode and I need to do some debugging.
I installed the Unity Debugger extension, the one in this link: Debugger for Unity - Visual Studio Marketplace

It is working fine, I can setup the breakpoints and watch variables.
Now I need to run some C# commands in real time on the console (like I would debug on a web application if I was doing javascript). But when I try to run some simple C# command (such as print) on the console, it returns this:

print("r");
Evaluate request failed (Expression not supported.).

How can I run any c# command from a console and affect my game that is running in real time using VSCode?

I’m not familiar with VSCode but what you’re asking for I am pretty confident is not possible. Unity does not support REPL code execution. Unity compiles your code - it’s not interpreted like a web applications javascript code is.