Can I execute commands while debugging in visual studio

Hao Sun 21 Reputation points
2021-01-19T17:33:58.917+00:00

Can I execute commands while debugging in visual studio? That is step through the program line by line and execute commands from the command line/python windows calling on the variables in the current iteration?

p.s. can I do this in VS code?

Also, how can I make visual studio have a simplistic interface and use minimal resources?

Developer technologies Visual Studio Debugging
Developer technologies Visual Studio Setup
Developer technologies Visual Studio Other
0 comments No comments
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 34,436 Reputation points Microsoft External Staff
    2021-01-20T06:57:18.497+00:00

    Hi @Hao Sun ,

    Thank you for taking time to post this issue in Microsoft Q&A forum.

    Does this feature: Immediate and Interactive windows meet your requirements?

    “The Python Debug Interactive window (Debug > Windows > Python Debug Interactive) is richer as it makes the full Interactive REPL experience available while debugging, including writing and running code. It automatically connects to any process started in the debugger using the Standard Python launcher (including processes attached through Debug > Attach to Process). It’s not, however, available when using mixed-mode C/C++ debugging.”

    For Visual Studio Code, you can start a new thread and ask this question here: Stack Overflow tagged with visual studio code.

    Also, how can I make Visual Studio have a simplistic interface and use minimal resources?

    I think, everyone wants to make Visual Studio have a simplistic interface and use minimal resources : )

    Normally, keep the default settings of Visual Studio is enough, and if you need to improve or optimize the performance of VS, you can refer to these documents: Optimize Visual Studio performance, Visual Studio performance tips and tricks.

    Best Regards,
    Tianyu

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.