You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-develop-vs.md
+17-18Lines changed: 17 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ Unless otherwise noted, procedures and examples shown are for Visual Studio 2022
25
25
26
26
## Prerequisites
27
27
28
-
- Azure Functions Tools. To add Azure Function Tools, include the **Azure development** workload in your Visual Studio installation. If you are using Visual Studio 2017, you may need to [follow some additional installation steps](#azure-functions-tools-with-visual-studio-2017).
28
+
- Azure Functions Tools. To add Azure Function Tools, include the **Azure development** workload in your Visual Studio installation. If you're using Visual Studio 2017, you may need to [follow some extra installation steps](#azure-functions-tools-with-visual-studio-2017).
29
29
30
30
- Other resources that you need, such as an Azure Storage account, are created in your subscription during the publishing process.
31
31
@@ -78,7 +78,7 @@ In C# class library functions, the bindings used by the function are defined by
78
78
79
79

80
80
81
-
You will then be prompted to choose between two Azure storage emulators or referencing a provisioned Azure storage account.
81
+
You'll then be prompted to choose between two Azure storage emulators or referencing a provisioned Azure storage account.
82
82
83
83
This trigger example uses a connection string with a key named `QueueStorage`. This key, stored in the [local.settings.json file](functions-develop-local.md#local-settings-file), either references the Azure storage emulators or an Azure storage account.
84
84
@@ -134,7 +134,7 @@ As with triggers, input and output bindings are added to your function as bindin
134
134
135
135
---
136
136
137
-
Inthisexamplereplace `<BINDING_TYPE>` withthenamespecifictothebindingextensionand `<TARGET_VERSION>` withaspecificversionofthepackage, suchas `3.0.0-beta5`. Validversionsarelistedontheindividualpackagepagesat [NuGet.org](https://nuget.org). The major versions that correspond to Functions runtime 1.x or 2.x are specified in the reference article for the binding.
137
+
Inthisexample,replace `<BINDING_TYPE>` withthenamespecifictothebindingextensionand `<TARGET_VERSION>` withaspecificversionofthepackage, suchas `3.0.0-beta5`. Validversionsarelistedontheindividualpackagepagesat [NuGet.org](https://nuget.org). The major versions that correspond to Functions runtime 1.x or 2.x are specified in the reference article for the binding.
@@ -163,7 +163,7 @@ For a full list of the bindings supported by Functions, see [Supported bindings]
163
163
164
164
## Run functions locally
165
165
166
-
AzureFunctionsCoreToolsletsyourunAzureFunctionsprojectonyourlocaldevelopmentcomputer. WhenyoupressF5todebugaFunctionsproject, thelocalFunctionshost (func.exe) startstolistenonalocalport (usually7071). Anycallablefunctionendpointsarewrittentotheoutput, andyoucanusethesefortestingyourfunctions. Formoreinformation, see [WorkwithAzureFunctionsCoreTools](functions-run-local.md). You're prompted to install these tools the first time you start a function from Visual Studio.
166
+
AzureFunctionsCoreToolsletsyourunAzureFunctionsprojectonyourlocaldevelopmentcomputer. WhenyoupressF5todebugaFunctionsproject, thelocalFunctionshost (func.exe) startstolistenonalocalport (usually7071). Anycallablefunctionendpointsarewrittentotheoutput, andyoucanusetheseendpointsfortestingyourfunctions. Formoreinformation, see [WorkwithAzureFunctionsCoreTools](functions-run-local.md). You're prompted to install these tools the first time you start a function from Visual Studio.
167
167
168
168
TostartyourfunctioninVisualStudioindebugmode:
169
169
@@ -211,16 +211,15 @@ You can also manage application settings in one of these other ways:
*Whileyou're debugging, the server is sending data to Visual Studio, which could affect bandwidth charges. For information about bandwidth rates, see [Azure Pricing](https://azure.microsoft.com/pricing/calculator/).
226
225
@@ -238,6 +237,8 @@ To republish a debug configured project to your function app in Azure:
@@ -246,13 +247,13 @@ To attach a remote debugger to a function app running in-process with the Functi
246
247
247
248
:::imagetype="content"source="media/functions-develop-vs/attach-to-process-in-process.png"alt-text="Attach debugger from Visual Studio":::
248
249
249
-
VisualStudioconnectstoyourfunctionappandenablesremotedebugging, ifit's not already enabled. It also locates and attaches the debugger to the host process for the app. At this point, you can debug your function app as normal. When you are done, you should [disable remote debugging](#disable-remote-debugging).
250
+
VisualStudioconnectstoyourfunctionappandenablesremotedebugging, ifit's not already enabled. It also locates and attaches the debugger to the host process for the app. At this point, you can debug your function app as normal.
>The .publishsettingsfilecontainsyourcredentials (unencoded) thatareusedtoadministeryourfunctionapp. Thesecuritybestpracticeforthisfileistostoreittemporarilyoutsideyoursourcedirectories (forexampleintheLibraries\Documentsfolder), andthendeleteitafterit's no longer needed. A malicious user who gains access to the .publishsettings file can edit, create, and delete your function app.
@@ -264,15 +265,13 @@ To attach a remote debugger to a function app running in a process separate from
264
265
VisualStudioconnectstoyourfunctionappandenablesremotedebugging, ifit's not already enabled.
265
266
266
267
> [!NOTE]
267
-
>Becausetheremotedebuggerisn't able to connect to the host process, you'llseeanerror. Thisisexpected.
1. Fromthe**Debug**menu, select**AttachtoProcess**, andinthe**Attachtoprocess**window, pastetheURLinthe**ConnectionTarget**, remove `https://` and insert `scm` and append the port `:4024`.
272
+
1. Fromthe**Debug**menu, select**AttachtoProcess**, andinthe**Attachtoprocess**window, pastetheURLinthe**ConnectionTarget**, remove `https://` and append the port `:4024`.
1. Check**Showprocessfromallusers**andthenchoose**dotnet.exe**andselect**Attach**. Whentheoperationcompletes,you're attached to your C# class library code running in an isolated process. At this point, you can debug your function app as normal.
286
285
287
286
---
288
287
289
288
### Disable remote debugging
290
289
291
-
Afteryou're done remote debugging your code, you should disable remote debugging in the Azure portal.
290
+
Afteryou're done remote debugging your code, you should disable remote debugging in the Azure portal. You can use this same process to enable remote debugging outside of Visual Studio.
0 commit comments