找不到远程调试 Azure Functions 符号

Remote debugging Azure Functions symbols not found

我正在尝试远程调试 azure 函数。所以我关注了 youtube 视频 http://www.youtube.com/watch?v=uiqc0iWwAzw&t=17m10s 但是当我附加调试器(到 w3wp.exe)时,断点将永远不会被击中。

断点有一个空心圆并表示:"The breakpoint will not currently be hit. No symbols have been loaded for this document."

'w3wp.exe' (CLR v4.0.30319: /LM/W3SVC/1060585570/ROOT-1-131176201993551687): Loaded 'ƒ-HttpTriggerCSharp1#ℛ*5465853b-4ded-4374-bb31-e99c9fc6cc71#1-0'. Cannot find or open the PDB file.
'w3wp.exe' (CLR v4.0.30319: /LM/W3SVC/1060585570/ROOT-1-131176201993551687): Loaded 'ScriptHost'. 
'w3wp.exe' (CLR v4.0.30319: /LM/W3SVC/1060585570/ROOT-1-131176201993551687): Loaded 'Anonymously Hosted DynamicMethods Assembly'. 

我发现了一个类似的问题: Remote debugging Azure website: Breakpoints not hit

我还禁用了 "Enable Just my Code" 选项。

除了禁用 "Enable just my code",还请确保设置(在同一对话框中)"Require source files to exactly match the original version" 也被禁用。

我遇到了同样的问题 - 以下 github 问题说明了问题,但解决方案并未解决我的问题:

https://github.com/Azure/Azure-Functions/issues/872

我终于在这里偶然发现了答案:

http://dontcodetired.com/blog/post/Remote-Debugging-Azure-Functions-V2-The-breakpoint-will-not-currently-be-hit-No-symbols-have-been-loaded-for-this-document

它归结为手动附加到 Azure 中的进程,而不是依赖于 Cloud Explorer 右键单击​​功能。