-
Notifications
You must be signed in to change notification settings - Fork 498
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
Add option in launch.json to create a new PS process for each script debug session #367
Comments
Definitely. I have been worried about this sort of thing leading to an incorrect assumption that a script is working because of "left-overs" in the debug session. Or in the case you outline, troubles debugging on subsequent runs. |
From @Glober777: I was wondering if there's a clean way of getting the integrated console automatically restarted when I'm starting the debug session (preferably configurable through launch.json, i.e. by referencing a task or via a separate attribute)? What I currently do, is I'm deleting the integrated console, which brings up a prompt suggesting me to restart it, but there were a few times when I forgot to do that and got burned by that. |
This change finishes the work necessary to enable debug-only sessions where a new PowerShell process is launched strictly for the purpose of providing a fresh debugging session. This is useful when debugging modules which use PowerShell classes or binary components which cannot be reloaded in the same process. Part of the implementation for PowerShell/vscode-powershell#367.
This change enables the user to configure their debugging sessions to launch a fresh PowerShell process each time they start the debugger. This is useful when debugging scripts or modules which use PowerShell classes or managed assemblies which cannot be reloaded within the same process. Resolves PowerShell#367.
This change finishes the work necessary to enable debug-only sessions where a new PowerShell process is launched strictly for the purpose of providing a fresh debugging session. This is useful when debugging modules which use PowerShell classes or binary components which cannot be reloaded in the same process. Part of the implementation for PowerShell/vscode-powershell#367.
This change enables the user to configure their debugging sessions to launch a temporary Integrated Console each time they start the debugger. This is useful when debugging scripts or modules which use PowerShell classes or managed assemblies which cannot be reloaded within the same process. Resolves PowerShell#367.
This change enables the user to configure their debugging sessions to launch a temporary Integrated Console each time they start the debugger. This is useful when debugging scripts or modules which use PowerShell classes or managed assemblies which cannot be reloaded within the same process. Resolves PowerShell#367.
This change enables the user to configure their debugging sessions to launch a temporary Integrated Console each time they start the debugger. This is useful when debugging scripts or modules which use PowerShell classes or managed assemblies which cannot be reloaded within the same process. Resolves #367.
There are some cases where it's useful to create an entirely new PowerShell process instance when debugging a script. For example, when writing PowerShell classes it isn't easy to quickly make tweaks to your class code in the same session because PS classes are generated into assemblies at runtime and can't be unloaded/reloaded. In this case, creating a fresh PowerShell process for each run of the debugger would enable the developer to have a faster turnaround time when writing PowerShell code with classes.
We should add a new option in launch.json which causes our debug adapter to create a new PowerShell process, load PSES and start a fresh debug server.
The text was updated successfully, but these errors were encountered: