Skip to content

Instantly share code, notes, and snippets.

@dellis1972
Created March 3, 2021 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dellis1972/96510c034444825f9b87c28cb7f4d930 to your computer and use it in GitHub Desktop.
Save dellis1972/96510c034444825f9b87c28cb7f4d930 to your computer and use it in GitHub Desktop.
VSCodeDebuggerSetup
{
"recommendations": [
"ms-vscode.csharp",
"ms-vscode.mono-debug",
"visualstudioexptteam.vscodeintellicode",
]
}
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug",
"type": "mono",
"request": "attach",
"address": "localhost",
// If you want to change this port change both AndroidSdbHostPort and AndroidSdbTargetPort in tasks.json
"port": 10000,
"preLaunchTask": "Run",
},
]
}
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Build",
"type": "shell",
"command": "msbuild ${input:project} /restore /p:Configuration=${input:configuration} /t:${input:target}",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$msCompile"
]
},
{
"label": "Run",
"type": "shell",
"command": "msbuild ${input:project} /restore \"/t:Install;_Run\" /p:Configuration=${input:configuration} /p:AndroidAttachDebugger=${input:attach} -p:AndroidSdbHostPort=10000 -p:AndroidSdbTargetPort=10000",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$msCompile"
]
},
],
"inputs": [
{
"id": "configuration",
"type": "pickString",
"default": "Debug",
"description": "The Build Configuration",
// Edit these to match your Configurations
"options": [ "Debug", "Release"]
},
{
"id": "target",
"type": "pickString",
"default": "Debug",
"description": "Select MSBuild Target",
"options": [
"Build", "SignAndroidPackage", "Install", "Clean",
]
},
{
"id": "attach",
"type": "pickString",
"default": "Build",
"description": "Attach Debugger?",
"options": [
"true",
"false",
]
},
{
"id": "project",
"type": "pickString",
"default": "Debug",
"description": "Select Project",
// Edit these to match your project structure.
// It is the path from the root of the project where the .vscode folder lives
"options": [
"foofoo.Android/foofoo.Android.csproj"
]
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment