You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see that your scenario would not require the workspace, however our vscode frontend has to support multiple languages to debug and for most having a workspace is required. Also debugging requires a launch.json file, and when there is no workspace there needs to be a shared launch.json which is a bit cumbersome.
So keep it as an open issue in case someone wants to code up a solution? Or is it something that we don't want to have at all because it would make the product worse?
I use vscode to write PowerShell scripts, these are usually single-files. I'd like to be able to open a Powershell file, set some break points and debug the script like I can with the PowerShell ISE
Just thought to check this with the latest official release of the PowerShell extension, version 0.8.0 which came out in mid-December. When starting the debug adapter it hangs on startup in the same way that I described above. Something definitely must have changed in how the debug adapter client communicates with debug adapters, but I'm not quite sure how.
If you want to give this a try, install the PowerShell extension and open the following folder (adjust the path appropriately for OS X if needed):
Just verified that VScode is sending exactly the same requests as before.
What we introduced recently is a handshake node module between vscode and adapters but this should not effect powershell as your adapter is not sending the 'handshake' request.
I am currently git bisecting to see what commit caused the issue
In order to spot issues like this in the future sooner it would be cool if you guys self hosted on vscode insiders :)
Isidor Nikolic (@isidorn) but your commit does not explain what went wrong with the Map code. I'm using the identical Map code in node-debug and have no issues...
After closer inspection with Andre Weinand (@weinand) we figured out that the exact issue is that powershell is sending back strings instead of numbers for response.request_seq, so instead of 1 we are getting "1". David Wilson (@daviwil) can you look into fixing this issue on your side so we go back to our proper usage of es5 maps on our side.
Activity
isidorn commentedon Nov 20, 2015
I see that your scenario would not require the workspace, however our vscode frontend has to support multiple languages to debug and for most having a workspace is required. Also debugging requires a launch.json file, and when there is no workspace there needs to be a shared launch.json which is a bit cumbersome.
Due to the above this is by design.
shashankt1989 commentedon Nov 20, 2015
So keep it as an open issue in case someone wants to code up a solution? Or is it something that we don't want to have at all because it would make the product worse?
isidorn commentedon Nov 20, 2015
Let's keep it open for now then
mateuszlewko commentedon Feb 21, 2016
Yes this would be a useful feature. Debuging just a single file. Please add this.
davehope commentedon Nov 10, 2016
I'd like to explain a possible use case for this.
I use vscode to write PowerShell scripts, these are usually single-files. I'd like to be able to open a Powershell file, set some break points and debug the script like I can with the PowerShell ISE
21 remaining items
daviwil commentedon Jan 13, 2017
Just thought to check this with the latest official release of the PowerShell extension, version 0.8.0 which came out in mid-December. When starting the debug adapter it hangs on startup in the same way that I described above. Something definitely must have changed in how the debug adapter client communicates with debug adapters, but I'm not quite sure how.
If you want to give this a try, install the PowerShell extension and open the following folder (adjust the path appropriately for OS X if needed):
c:\Users\<your username>\.vscode\extensions\ms-vscode.PowerShell-0.8.0\examples\Open the
DebugTest.ps1file in that folder and hit F5, you'll see that the debug adapter never fully starts up (no orange status bar).weinand commentedon Jan 13, 2017
Isidor Nikolic (@isidorn) David's problem sounds like a regression to me. Can you look into this?
isidorn commentedon Jan 13, 2017
Just verified that VScode is sending exactly the same requests as before.
What we introduced recently is a handshake node module between vscode and adapters but this should not effect powershell as your adapter is not sending the 'handshake' request.
I am currently git bisecting to see what commit caused the issue
In order to spot issues like this in the future sooner it would be cool if you guys self hosted on vscode insiders :)
do not use map for pending requests
isidorn commentedon Jan 13, 2017
Here's the commit that breaks it - praise git bisect 🙏
140f1ec
Here's the commit that fixes the issue fb838d2
weinand commentedon Jan 13, 2017
Isidor Nikolic (@isidorn) but your commit does not explain what went wrong with the Map code. I'm using the identical Map code in node-debug and have no issues...
daviwil commentedon Jan 13, 2017
Sorry about that, I'll use Insiders from now on. I had been using it in the past but somehow switched back over to stable.
Just pulled down the latest code after your change, that fixed it! Everything works perfectly now. Thanks a lot Isidor!
isidorn commentedon Jan 13, 2017
After closer inspection with Andre Weinand (@weinand) we figured out that the exact issue is that powershell is sending back
stringsinstead ofnumbersforresponse.request_seq, so instead of1we are getting"1".David Wilson (@daviwil) can you look into fixing this issue on your side so we go back to our proper usage of es5 maps on our side.
daviwil commentedon Jan 13, 2017
Hah! Wow, wouldn't have expected that. Yep, I'll make the change.
daviwil commentedon Jan 13, 2017
I can confirm that changing
request_seqto int in my message serializer fixed the issue in the Insider's build.isidorn commentedon Jan 13, 2017
Awesome - we'll go back to using a map
debug: no folder debugging