Skip to content
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

Support debug apps running under mono runtime using vsdbg. #6752

Merged
merged 14 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,7 @@
"onDebugResolve:blazorwasm",
"onDebugResolve:coreclr",
"onDebugResolve:clr",
"onDebugResolve:monovsdbg",
"onDebugResolve:dotnet",
"onLanguage:csharp",
"onCommand:o.showOutput",
Expand Down Expand Up @@ -1642,7 +1643,8 @@
"type": "string",
"enum": [
"coreclr",
"clr"
"clr",
"monovsdbg"
],
"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.",
"default": "coreclr"
Expand Down Expand Up @@ -4875,6 +4877,14 @@
}
}
]
},
{
"type": "monovsdbg",
"label": ".NET Core using Mono Runtime",
"hiddenWhen": "true",
"languages": [
"csharp"
]
}
],
"semanticTokenTypes": [
Expand Down
7 changes: 7 additions & 0 deletions src/coreclrDebug/activate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,15 @@ export async function activate(
new BaseVsDbgConfigurationProvider(platformInformation, csharpOutputChannel)
)
);
context.subscriptions.push(
vscode.debug.registerDebugConfigurationProvider(
'monovsdbg',
new BaseVsDbgConfigurationProvider(platformInformation, csharpOutputChannel)
)
);
disposables.add(vscode.debug.registerDebugAdapterDescriptorFactory('coreclr', factory));
disposables.add(vscode.debug.registerDebugAdapterDescriptorFactory('clr', factory));
disposables.add(vscode.debug.registerDebugAdapterDescriptorFactory('monovsdbg', factory));

context.subscriptions.push(disposables);
}
Expand Down