Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upChanging breakpoints during execution causes a hang #1658
Comments
|
Thanks for the info! Can you also attach the logs here so we can get a better idea of what's going on? Please set the Log Level to Diagnostic. |
|
I cannot get an output file when I turn on the diagnostic logging - I get an exception saying The following is output into the [TEMP] PowerShell Integrated Window:
And the following is the contents of the launch.json file:
I haven't changed launch.json in any way, so it should be default. We are using Powershel 6.1 as our command. The following have been changed from default in the powershell configuration:
|
|
I've got a further update on the launch.json (This may need opening as a new issue, please feel free to let me know - I'll push one in if it is): There's an error happening in the Editor Services Log File
In order to diagnose this, I tried to get that file in a The output from the console: PowerShell 6.1.0
Copyright (c) Microsoft Corporation. All rights reserved.
https://aka.ms/pscore6-docs
Type 'help' to get help.
PS C:\Users\pstreet> Import-Module C:\Users\pstreet\.vscode\extensions\ms-vscode.powershell-1.10.2\modules\PowerShellEditorServices\bin\Core\..\..\Commands\PowerShellEditorServices.Commands.psd1
PS C:\Users\pstreet> Get-Module PowerShellEditorServices.Commands
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 0.2.0 PowerShellEditorServices.Commands {ConvertFrom-ScriptExtent, ConvertTo-ScriptExtent, Find-As...
PS C:\Users\pstreet> Get-Command -Module PowerShellEditorServices.Commands
CommandType Name Version Source
----------- ---- ------- ------
Function ConvertFrom-ScriptExtent 0.2.0 PowerShellEditorServices.Commands
Function ConvertTo-ScriptExtent 0.2.0 PowerShellEditorServices.Commands
Function Find-Ast 0.2.0 PowerShellEditorServices.Commands
Function Get-Token 0.2.0 PowerShellEditorServices.Commands
Function Import-EditorCommand 0.2.0 PowerShellEditorServices.Commands
Function Join-ScriptExtent 0.2.0 PowerShellEditorServices.Commands
Function New-EditorFile 0.2.0 PowerShellEditorServices.Commands
Function Open-EditorFile 0.2.0 PowerShellEditorServices.Commands
Function Out-CurrentFile 0.2.0 PowerShellEditorServices.Commands
Function Register-EditorCommand 0.2.0 PowerShellEditorServices.Commands
Function Set-ScriptExtent 0.2.0 PowerShellEditorServices.Commands
Function Test-ScriptExtent 0.2.0 PowerShellEditorServices.Commands
Function Unregister-EditorCommand 0.2.0 PowerShellEditorServices.Commands
PS C:\Users\pstreet>Sorry I can't give any further information - I'm not sure exactly where to look. |
|
Deduplicating this to #1494 |
Issue Description
When I try and change breakpoints during script execution, the output hangs when it encounters any breakpoint that is already set.
Reproduction steps
Import-Module AWSPowerShell.NetCorewhich takes on the region of 20 - 30 seconds.I've already looked at #1589 which references #1263, but those don't appear to be the same bug (To me, at least).
I saw #1494 which appears similar but has a different trigger (To me, at least - it may be the same problem)
#1163 also appears similar, but with a different actualisation.
Please accept my apologies if this is the same as one of these existing bugs.
Environment Information
Visual Studio Code
PowerShell Information
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)