-
Notifications
You must be signed in to change notification settings - Fork 490
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
When debugging a powershell script, every 2 times the debugger stops. #1119
Comments
Hi. This is pretty infuriating ;D
What can we do to help investigate that issue? |
This issue is being tracked in #987, #1107 and PowerShell/PowerShellEditorServices#554 There's a PR open to fix the issue here @tlisiecki @davidkoenig09 If you're feeling adventurous and would like to give us a hand testing out the potential fix, here's the build from appveyor |
Hi @SeeminglyScience . Thanks for the update. I |
@SeeminglyScience the appveyor download when on macOS has some path troubles - I don't think Travis gives us anything, does it? @tlisiecki can you confirm that you see the same thing when you extract the zip? What we want to do is replace the folder |
Probably a result of zipping on Windows, unzipping on linux. I can look at that in a bit. In the short term, if you have a windows machine available you can probably unzip it there and transfer the folder over... or zip it correctly and transfer the zip over |
Ah yeah, I saw it displaying differently in Ubuntu if I built on Windows. But the default |
Hi @SeeminglyScience , @tylerl0706 .
After that I started VSCode and opened powershell script. Powershell Integrated Console started but failed with an exception I couldn`t read casuse the terminal disappeared very quickly. From powershell extension Logs Output I found out that Start-EditorServices.ps1 with a set of arguments was executed, so I actually tried to run that by hand with the following exception (unrecognized arguments in new version of Start-EditorServices.ps1)
Now things get a lot much better when I rolled back to old Start-EditorServices.ps1 while keeping new versions of PowerShellEditorServices and PowerShellEditorServices.VSCode. |
@tylerl0706 I missed this one in the PR, if you could close please :) |
Closing as fixed in the version shipping this week! |
System Details
$PSVersionTable
:PSVersion 6.0.0-rc
PSEdition Core
GitCommitId v6.0.0-rc
OS Linux 3.10.0-693.5.2.el7.x86_64 Create Yeoman generator for PowerShell projects #1 SMP Fri Oct 20 20:32:50 UTC 2017
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Issue Description
When debugging a powershell script, every 2 times the debugger stops. I describes the exact behavior and steps to reproduce.
_Steps to reproduce:
1: Install vscode
1a: sudo yum install wget
1b: wget https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-rc/powershell-6.0.0_rc-1.rhel.7.x86_64.rpm
1c: sudo yum install powershell-6.0.0_rc-1.rhel.7.x86_64.rpm
2: Start code
3: Install Powershell extensions
4: Start debugging with F5 (PowerShell Launch Current File)
5: step through your code with F10/F11
6: Every 2nd line he stops going forward. Then you have to click into the terminal and press "Enter". Than you can go back into the editor window and go forward with F10/F11._
I am experiencing a problem with...
The text was updated successfully, but these errors were encountered: