Created
August 4, 2024 15:38
-
-
Save xperiandri/3812bc86d2bef26c5ac8e1e5f8e62737 to your computer and use it in GitHub Desktop.
Uno Platform VS Code `launch.json`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Use IntelliSense to find out which attributes exist for C# debugging | |
// Use hover for the description of the existing attributes | |
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Uno Platform Mobile Debug", | |
"type": "Uno", | |
"request": "launch", | |
// any Uno* task will do, this is simply to satisfy vscode requirement when a launch.json is present | |
"preLaunchTask": "Uno: android | Debug | android-x64" | |
}, | |
{ | |
// Use IntelliSense to find out which attributes exist for C# debugging | |
// Use hover for the description of the existing attributes | |
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md | |
"name": "Uno Platform WebAssembly Debug (Chrome)", | |
"type": "chrome", | |
"request": "launch", | |
"url": "http://localhost:5000", | |
"webRoot": "${workspaceFolder}/UnoSingle", | |
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", | |
"timeout": 30000, | |
"preLaunchTask": "build-wasm", | |
"server": { | |
"runtimeExecutable": "dotnet", | |
"program": "run", | |
"args": ["--no-build","-f","net8.0-browserwasm","--launch-profile", "UnoSingle (WebAssembly)"], | |
"outputCapture": "std", | |
"timeout": 30000, | |
"cwd": "${workspaceFolder}/UnoSingle" | |
} | |
}, | |
{ | |
// Use IntelliSense to find out which attributes exist for C# debugging | |
// Use hover for the description of the existing attributes | |
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md | |
"name": "Uno Platform Desktop Debug", | |
"type": "coreclr", | |
"request": "launch", | |
"preLaunchTask": "build-desktop", | |
// If you have changed target frameworks, make sure to update the program path. | |
"program": "${workspaceFolder}/UnoSingle/bin/Debug/net8.0-desktop/UnoSingle.dll", | |
"args": [], | |
"launchSettingsProfile": "UnoSingle (Desktop)", | |
"env": { | |
"DOTNET_MODIFIABLE_ASSEMBLIES": "debug" | |
}, | |
"cwd": "${workspaceFolder}/UnoSingle", | |
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console | |
"console": "internalConsole", | |
"stopAtEntry": false | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment