Skip to content

ISE like breakpoint behaviour (hit breakpoints when running a script from the integrated terminal) #2159

@Line40

Description

@Line40

Support for hitting breakpoints set in scripts run from the integrated powershell terminal

One of the main features of the Powershell ISE for me was that I was able to just open any script, set breakpoints and run the script from the ISE console and the breakpoints would be hit. Heck even breakpoints in scripts or modules that were invoked by that script would hit.

In VS Code, I find it extremely tedious to always have to edit launch.json just to change parameters I run a script I'm developing with. I'm still exclusively using ISE for script development, just for this one missing feature in VS Code.

I tried multiple times to switch to VS Code, because I really like it overall, but I'm always going back to ISE because I can't bear the overly complicated debugging setup.

Maybe I'm missing something, I really wonder why apparently no one else requested this.

What I want to happen

I want to open any .ps1 file in VS Code, set breakpoints in that file, then go to the terminal window, and invoke that script, or any script that indirectly calls the opened file, and the breakpoints I set in the file get actually hit, as if I used F5.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions