Skip to content

Commit 094f711

Browse files
nturinskiNathan Turinski
andauthored
Use functionDebugLink for Functions apps in remote debugging (#2256)
* Use functionDebugLink for Functions apps in remote debugging * chore: retrigger CI --------- Co-authored-by: Nathan Turinski <naturins@microsoft.comm>
1 parent cb16671 commit 094f711

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

appservice/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

appservice/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@microsoft/vscode-azext-azureappservice",
33
"author": "Microsoft Corporation",
4-
"version": "4.2.3",
4+
"version": "4.2.4",
55
"description": "Common tools for developing Azure App Service extensions for VS Code",
66
"tags": [
77
"azure",

appservice/src/remoteDebug/startRemoteDebug.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { reportMessage, setRemoteDebug } from './remoteDebugCommon';
1212
import { AzExtGenericCredentials } from '@microsoft/vscode-azext-azureutils';
1313

1414
const remoteDebugLink: string = 'https://aka.ms/appsvc-remotedebug';
15+
const functionDebugLink: string = 'https://aka.ms/azfunctions-remotedebugging';
1516

1617
let isRemoteDebugging: boolean = false;
1718

@@ -46,8 +47,9 @@ async function startRemoteDebugInternal(context: IActionContext, options: StartR
4647
const localHostPortNumber: number = await findFreePort();
4748
const debugConfig: vscode.DebugConfiguration = await getDebugConfiguration(options.language, localHostPortNumber);
4849

50+
const debugLink: string = options.site.isFunctionApp ? functionDebugLink : remoteDebugLink;
4951
const confirmEnableMessage: string = vscode.l10n.t('The configuration will be updated to enable remote debugging. Would you like to continue? This will restart the app.');
50-
await setRemoteDebug(context, true, confirmEnableMessage, undefined, options.site, options.siteConfig, progress, token, remoteDebugLink);
52+
await setRemoteDebug(context, true, confirmEnableMessage, undefined, options.site, options.siteConfig, progress, token, debugLink);
5153

5254
reportMessage(vscode.l10n.t('Starting tunnel proxy...'), progress, token);
5355

@@ -79,7 +81,7 @@ async function startRemoteDebugInternal(context: IActionContext, options: StartR
7981

8082
const confirmDisableMessage: string = vscode.l10n.t('Remaining in debugging mode may cause performance issues. Would you like to disable debugging? This will restart the app.');
8183
await vscode.window.withProgress({ location: vscode.ProgressLocation.Notification, cancellable: true }, async (innerProgress, innerToken): Promise<void> => {
82-
await setRemoteDebug(context, false, confirmDisableMessage, undefined, options.site, options.siteConfig, innerProgress, innerToken, remoteDebugLink);
84+
await setRemoteDebug(context, false, confirmDisableMessage, undefined, options.site, options.siteConfig, innerProgress, innerToken, debugLink);
8385
});
8486
}
8587
});

0 commit comments

Comments
 (0)