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?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,573 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
935 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
960 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 27,106 Reputation points Microsoft Vendor
    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