Debugging .NET Framework functions in VS Code
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".
npm root -gto find the root folder containing your global npm packages (likely
- Replace the files in
<npm global packages root>\azure-functions-core-tools\binwith 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.