Share via

powershell debugging

Rudolf Meier 291 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?

Developer technologies | Visual Studio | Debugging
0 comments No comments

1 answer

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,436 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

Your answer

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