为 Azure Webjob 部署 PDB 文件

Deploy PDB files for Azure Webjob

我正在尝试将我的 WebJob 与 PDB 文件一起发布,但它不起作用。 我已将它们包含在“属性”->“发布”->“应用程序文件”下。

按照这个


但仍未部署:


我通过右键单击项目然后 "Publish as Azure WebJob" 使用发布配置文件进行发布。 在发布模式下本地构建时,PDB 文件将复制到 bin/release 文件夹。

我不知道还能做什么,所以非常感谢您的帮助!

A PDB file stands for a program database file and it is generated if we are building a program running a program that needs the ability to debug and that just means check for errors. So if we are building a program and we need to test run to see if it's running correctly it will generate one of these files holds sort of all the configuration and debugging data for that. We can remote debug 当我们使用配置调试发布我们的 WebJob 时继续 WebJob。

如果我们配置调试然后将WebJob发布到Azure,我们就可以为Azure WebJob部署PDB文件。

然后我们可以查看pdb文件是否已经上传到kudu。

I'm publishing by right clicking the project and then "Publish as Azure WebJob" using a publish profile. The PDB files are copied to the bin/release folder when building locally in release-mode

所以根据我的理解,使用配置 release.

将 pdb 文件上传到 Azure WebJob 似乎没有意义