Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F5 Debugging of scripts #36

Open
adamdriscoll opened this issue Jan 6, 2025 · 0 comments
Open

F5 Debugging of scripts #36

adamdriscoll opened this issue Jan 6, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@adamdriscoll
Copy link
Member

It would be pretty cool to be able to run a script, in the PSU server, from VS Code. For example, you would click Automation \ Scripts \ Script.ps1. It opens it in VS Code. Press F5 in this script (or some other key) to invoke the script directly in the VS Code server. The debugging experience should appear like it's happening locally but would actually be taking place in the server.

We have some basic PSES integration (that doesn't work well) that could enhance to get this working. It would effectively trigger a job and write the output to the local terminal.

It might be nice to just do the job execution first and not the debugging at all. Then you could at least run the scripts and see the console output but not have to try to get all the debugging working. We could hook up the debug terminal to the local terminal. It would be a easy goal to achieve.

The benefits are that you would be running completely in the PSU environment so you would have access to variables, the modules installed on the server and other environmental conditions that are introduced due to the hosting.

@adamdriscoll adamdriscoll added the enhancement New feature or request label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant