Adding changes to support use monovsdbg to debug wasm apps.#7220
Adding changes to support use monovsdbg to debug wasm apps.#7220thaystg wants to merge 37 commits intodotnet:mainfrom
Conversation
…_ASSEMBLIES to enable hotreload.
…/vscode-csharp into dev/thays/support_wasm_monovsdbg
|
@gregg-miskelly can you please review again? |
|
Can I get a review again here? |
| ] | ||
| }, | ||
| { | ||
| "id": "VSWebAssemblyBridge", |
There was a problem hiding this comment.
Should this be added here so you can use the update dependencies script?
There was a problem hiding this comment.
Did you push this fix? I don't see it
There was a problem hiding this comment.
I forgot to push, it's there now.
| } | ||
| }); | ||
| assetsPath = assetsPath.slice(0, -1); | ||
| return [assetsPath, this.executableProjects[0].outputPath]; |
There was a problem hiding this comment.
There was a problem hiding this comment.
The program name is basically not used, is a requirement for concord, but we don't use it for wasm, that is why I'm getting the first one.
The assets path is used to load the metadata, this one is important.
There was a problem hiding this comment.
Should we just use a sentinal program name? Ex: "Blazor WASM"?
There was a problem hiding this comment.
We can't it's required that the program exists in the disk.
…/vscode-csharp into dev/thays/support_wasm_monovsdbg
|
can we get some news here? |
| try { | ||
| await this.vscodeType.debug.startDebugging(folder, app); | ||
| const terminate = this.vscodeType.debug.onDidTerminateDebugSession(async (event) => { | ||
| if (process.platform !== 'win32') { |
| } | ||
|
|
||
| private static async launchVsWebAssemblyBridge(urlStr: string): Promise<[string, number, number]> { | ||
| const dotnetPath = process.platform === 'win32' ? 'dotnet.exe' : 'dotnet'; |
There was a problem hiding this comment.
I fixed it, now it's using the one that comes with the C# extension.
| let proxyICorDebugPort = -1; | ||
| let proxyBrowserPort = -1; | ||
| let newUri = ''; | ||
| const spawnedProxy = cp.spawn(dotnetPath, spawnedProxyArgs, cpOptions); |
Adding changes to support debug wasm apps using monovsdbg.
Tested scenarios with the new setting enabled and this PR:
With Assets and C# DevKit Not Installed targetting .NET 8 (Blazor Wasm) - DISABLED
With Assets and C# DevKit Not Installed targetting .NET 8 (Blazor Server Wasm) - DISABLED
With Assets and C# DevKit Not Installed targetting .NET 9 (Blazor Wasm) - ENABLED
With Assets and C# DevKit Not Installed targetting .NET 9 (Blazor Server Wasm) - ENABLED
With Assets and C# DevKit Installed targetting .NET 8 (Blazor Wasm) - DISABLED
With Assets and C# DevKit Installed targetting .NET 8 (Blazor Server Wasm) - DISABLED
With Assets and C# DevKit Installed targetting .NET 9 (Blazor Wasm) - ENABLED
With Assets and C# DevKit Installed targetting .NET 9 (Blazor Server Wasm) - ENABLED
Without Assets and C# DevKit Installed targetting .NET 8 (Blazor Wasm) - DISABLED
Without Assets and C# DevKit Installed targetting .NET 8 (Blazor Server Wasm) - DISABLED
Without Assets and C# DevKit Installed targetting .NET 9 (Blazor Wasm) - ENABLED
Without Assets and C# DevKit Installed targetting .NET 9 (Blazor Server Wasm) - ENABLED
Tested scenarios only updating C# DevKit with the monovsdbg support:
Tested scenarios with this PR and C# DevKit without the monovsdbg support:
With Assets and C# DevKit Installed targetting .NET 8 (Blazor Wasm) - DISABLED
With Assets and C# DevKit Installed targetting .NET 8 (Blazor Server Wasm) - DISABLED
With Assets and C# DevKit Installed targetting .NET 9 (Blazor Wasm) - ENABLED
With Assets and C# DevKit Installed targetting .NET 9 (Blazor Server Wasm) - ENABLED
Without Assets and C# DevKit Installed targetting .NET 8 (Blazor Wasm) - DISABLED
Without Assets and C# DevKit Installed targetting .NET 8 (Blazor Server Wasm) - DISABLED
Without Assets and C# DevKit Installed targetting .NET 9 (Blazor Wasm) - DISABLED
Without Assets and C# DevKit Installed targetting .NET 9 (Blazor Server Wasm) - DISABLED