Search code examples
pythondjangomethodsvisual-studio-codeimmediate-window

Is it possible to execute a python(django) function immediately on vs code?


I want to execute a python function in vs code directly when I set a breakpoint when debugging. Just like Immediate window on Visual Studio


Solution

  • I believe you can set the break-point and in Debug tab add configuration Django. And then run debugging.
    Like this:VS code screenshot, debug configuration

    Hope this will help!