Azure / Azure/azure-functions-host

Remote debugging of Node.JS/JavaScript Function Apps via Cloud Explorer

Open
#5,344 10 comments 8 reactions 0 assignees View on GitHub
enhancement stack: node-js
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

It looks to be possible to debug C#-based Function Apps via Visual Studio 2019. However, I've been unable to do this for Node.JS/JavaScript based Function Apps.

I can connect a Remote Debug session via Cloud Explorer without an issue, but any breakpoints I set are ignored. VS 2019 says 'The breakpoint will not currently be hit. No symbols have been loaded for this document.'

![image](https://user-images.githubusercontent.com/9819307/70318901-037d1700-1819-11ea-937c-a5a9870a244a.png)

I've updated Symbols via Debug > Options > Debugging > Symbols > 'Load all symbols'. But I suspect this won't help.

The Function App may have been deployed via the Azure Portal, or through VS 2019, or Visual Studio Code, so when implementing this improvement, it should work with whatever deployment method was used. It should also hopefully not matter what platform the Function App has been set to run on (Windows or Linux).

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the remote debugging session through Cloud Explorer for a Node.js/JavaScript Function App and verify the ignored-breakpoint behavior. Compare deployments from the Azure Portal, Visual Studio 2019, and Visual Studio Code on Windows and Linux; done means breakpoints load and are hit in each supported scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, javascript, node.js
Domain
backend, cloud, devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.