powershell debugging

Rudolf Meier 271 Reputation points
2021-03-31T09:56:38.513+00:00

I'd like to write a powershell module (or whatever it's called)... in the end it's an assemly that you can load and that contains classes derived from PSCmdlet. And I'd like to debug this in Visual Studio (not Visual Studio Code or something, the full Visual Studio 2017 and 2019). ... now, when I tell Visual Studio to launch the powershell for debugging, the layout is different from when I launch it via the link I find in my startmenu. And it's also different from the layout when I launch it from the command line (typing powershell.exe). Question... why? How does this work with this layout stuff?

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.
943 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,406 Reputation points
    2021-04-01T06:28:48.993+00:00

    Hi RudolfMeier,

    As far as I know, the default layout of debugger is the project output directory. Maybe you can change the output path or move related scripts and other components.

    Best Regards, Dylan

    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 comments No comments