Skip to content

Commit 7c7bada

Browse files
authored
Support debug apps running under mono runtime using vsdbg (#6752)
* Implement support to debug when running on mono runtime using vsdbg * Fix merge * Adding changes to debug using mono runtime * Using monovsdbg to debug mono using icordbg * Addressing Gregg's and Andrew's comments * Addressing comments * Remove unrelated changes * Removing unnecessary information about debug using icordbg for mono, the launch.json will be created by another extension. * Remove unnecessary changes. * remove extra enter
1 parent 0d7d1e4 commit 7c7bada

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,7 @@
10211021
"onDebugResolve:blazorwasm",
10221022
"onDebugResolve:coreclr",
10231023
"onDebugResolve:clr",
1024+
"onDebugResolve:monovsdbg",
10241025
"onDebugResolve:dotnet",
10251026
"onLanguage:csharp",
10261027
"onCommand:o.showOutput",
@@ -1642,7 +1643,8 @@
16421643
"type": "string",
16431644
"enum": [
16441645
"coreclr",
1645-
"clr"
1646+
"clr",
1647+
"monovsdbg"
16461648
],
16471649
"description": "Type type of code to debug. Can be either 'coreclr' for .NET Core debugging, or 'clr' for Desktop .NET Framework. 'clr' only works on Windows as the Desktop framework is Windows-only.",
16481650
"default": "coreclr"
@@ -4875,6 +4877,14 @@
48754877
}
48764878
}
48774879
]
4880+
},
4881+
{
4882+
"type": "monovsdbg",
4883+
"label": ".NET Core using Mono Runtime",
4884+
"hiddenWhen": "true",
4885+
"languages": [
4886+
"csharp"
4887+
]
48784888
}
48794889
],
48804890
"semanticTokenTypes": [

src/coreclrDebug/activate.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,15 @@ export async function activate(
9292
new BaseVsDbgConfigurationProvider(platformInformation, csharpOutputChannel)
9393
)
9494
);
95+
context.subscriptions.push(
96+
vscode.debug.registerDebugConfigurationProvider(
97+
'monovsdbg',
98+
new BaseVsDbgConfigurationProvider(platformInformation, csharpOutputChannel)
99+
)
100+
);
95101
disposables.add(vscode.debug.registerDebugAdapterDescriptorFactory('coreclr', factory));
96102
disposables.add(vscode.debug.registerDebugAdapterDescriptorFactory('clr', factory));
103+
disposables.add(vscode.debug.registerDebugAdapterDescriptorFactory('monovsdbg', factory));
97104

98105
context.subscriptions.push(disposables);
99106
}

0 commit comments

Comments
 (0)