-
Notifications
You must be signed in to change notification settings - Fork 135
Debug .NET Framework functions
Eric Jizba edited this page Feb 1, 2019
·
1 revision
The VS Code Debugger for C# only supports attaching to 64-bit processes. However, v1.0 of the Azure Functions runtime defaults to 32-bit (See this issue for more info). Follow these instructions to install a 64-bit version:
- Install the 32-bit version of the cli with the command
npm install -g azure-functions-core-tools
- Download a 64-bit version of the v1.0 cli from here. The file name will look similar to "1.0.8-x64.zip".
- Run
npm root -g
to find the root folder containing your global npm packages (likely%USERPROFILE%\AppData\Roaming\npm\node_modules
) - Replace the files in
<npm global packages root>\azure-functions-core-tools\bin
with the un-zipped files
NOTE: The VS Code extension for Azure Functions will warn you to install the 64-bit version of the Azure Functions CLI every time you create a .NET Framework based project (even after you have installed the 64-bit version). You may ignore that warning once you follow the above steps.