Skip to content

Commit ab6b267

Browse files
github-actions[bot]thaystgEilon
authored
[release/7.0] [Blazor][debugging] Support Debug on Chromium (#45341)
* Support Debug on Chromium * Update src/Components/Web.JS/src/Platform/Mono/MonoDebugger.ts Co-authored-by: Eilon Lipton <[email protected]> Co-authored-by: Thays Grazia <[email protected]> Co-authored-by: Eilon Lipton <[email protected]>
1 parent 9e2cf6b commit ab6b267

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Components/Web.JS/src/Platform/Mono/MonoDebugger.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const navigatorUA = navigator as MonoNavigatorUserAgent;
77
const brands = navigatorUA.userAgentData && navigatorUA.userAgentData.brands;
88
// eslint-disable-next-line @typescript-eslint/no-explicit-any
99
const currentBrowserIsChromeOrEdge = brands
10-
? brands.some(b => b.brand === 'Google Chrome' || b.brand === 'Microsoft Edge')
10+
? brands.some(b => b.brand === 'Google Chrome' || b.brand === 'Microsoft Edge' || b.brand === 'Chromium')
1111
: (window as any).chrome;
1212
const platform = navigatorUA.userAgentData?.platform ?? navigator.platform;
1313

@@ -34,7 +34,7 @@ export function attachDebuggerHotkey(resourceLoader: WebAssemblyResourceLoader):
3434
if (!debugBuild && !hasReferencedPdbs) {
3535
console.error('Cannot start debugging, because the application was not compiled with debugging enabled.');
3636
} else if (!currentBrowserIsChromeOrEdge) {
37-
console.error('Currently, only Microsoft Edge (80+), or Google Chrome, are supported for debugging.');
37+
console.error('Currently, only Microsoft Edge (80+), Google Chrome, or Chromium, are supported for debugging.');
3838
} else {
3939
launchDebugger();
4040
}

src/Components/WebAssembly/Server/src/TargetPickerUi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Ensure your browser is running with debugging enabled.
6565
</p>
6666
<h2>Resolution</h2>
6767
<p>
68-
<h4>If you are using Google Chrome for your development, follow these instructions:</h4>
68+
<h4>If you are using Google Chrome or Chromium for your development, follow these instructions:</h4>
6969
{GetLaunchChromeInstructions(targetApplicationUrl.ToString())}
7070
</p>
7171
<p>

0 commit comments

Comments
 (0)