-
Notifications
You must be signed in to change notification settings - Fork 223
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
Plan for packaging of the x86/x64 host EXE and CMD files #96
Comments
Different CMD names is probably a good idea. The x64 host is technically AnyCPU so if we default to that it would run on x86 as well. |
Yep, agree with both your points. We'll need a separate .cmd to run the x86 host and then have a separate debugger configuration for that. x64 should be the default, and like Adam says, it should work fine on 32-bit systems. I was thinking about adding a new preference setting in the VS Code extension to choose which bitness to use for the language service. It kinda sucks to have to change the bitness setting in two different places but maybe later we can find a clever way to make one setting that controls both. Feel free to go for it, Keith! |
I'm looking at this - trying to understand the debuggers section of the package.json format. Ideally, I would prefer that users did not have to change a user preference setting to select the host. It would be cool if it were something that could be selected via the debug target dropdown in the Debugger viewlet's toolbar. But I'm not quite seeing how to do that with the package.json file. :-( I created two different debuggers: entries (it's set up to take an array) but when you click the gear icon in the Debugger toolbar to create a new launch.json file, PowerShell no longer shows up in the list. So while the format seems to indicate it will take an array of debugger configurations, it isn't working for me (or more likely I'm doing something wrong). Anyway, I filed on issue on the VSCode repo. microsoft/vscode#1696 |
BTW what does it look like to "launch" a remote host debug adapter? Do we need to be able to specify x86 for that as well? I would think so. |
You may need to define a second debugger type called For remote debugging, VS Code's debug adapter API also allows you to specify a debug server with IP address and port. This may only be available for the If we're going to allow web-based editing/debugging of PowerShell scripts in the future, we'll probably have to solve this problem generally for both language and debug services. It could make sense to add a "gateway mode" to Great timing to start discussing this since WebSocket connections just became a reality :) |
Hey Keith, where did you end up with adding a x86/x64 setting to allow use of the x86 host? I know we're still waiting for a more official solution from the VS Code team, but I'm wondering if we can set up two debugger configurations in our extension in the short term until they get something worked out. I'm going to try and finish up the 0.4.0 work this week and release on Monday the 8th. If you're booked and won't have time to get around to it, let me know and I'll be happy to finish it up. Thanks again for looking into this! |
I have time this week. I just didn't want to check anything in until I had an insiders drop to verify the checked in code works. I've been holding off on the SortText fix and the ${file} tweak until then. I can do this change as well but I wanted to see exactly how they planned on supporting this scenario. The last comment (microsoft/vscode#1696) indicated defining additional x86/x64 debuggers. Assuming that is what makes it into the Feb drop, that should be very straight forward to implement. |
Ahhh, yeah. When they said they'd add it in the February release, I was considering that to be the one after the upcoming one. Since it's February on Monday I wonder if they meant it'll be in the next :) Your plan makes sense, sounds good to me! |
Besides **all** the awesome work @adamdriscoll did to enable this; there are some changes that need to be made to package.json in the vscode repo. In order to support those changes, we need a different filename for the x86 batch file that launches the x86 debug host.
… host exe/batch files. The nuspec includes both native (x64) and x86 versions of the exe and batch files. Removed the nuspec file from the Host.x86 dir per @daviwil request.
…4-dbg PSES side changes for issue #96 - support x86/x64 debugging.
I think we're good on this one now, right? Wanna close it, Keith? |
Yup. |
…ise-with-spaces Fixes PowerShell#94 - specifically the Open in ISE issue.
What is the plan for allowing a user to choose between the x86 and x64 host? I was expecting to see two debugger configurations in the package.json file: “PowerShell x86” and “PowerShell x64”.
I’m not sure which should be the default (probably the x64 host). Anyway, I was thinking about changing the package.json file but I realize I’m not sure how the two EXE and CMD files will be placed in the extension's install dir. The exe’s have different names so they could be co-located in the Bin dir but the CMD files have the same name. Is this a case where the x86 CMD should have x86 put in its filename so it can be co-located in the Bin dir?
Thoughts?
The text was updated successfully, but these errors were encountered: