简体   繁体   English

为Azure Webjob部署PDB文件

[英]Deploy PDB files for Azure Webjob

I'm trying to publish my WebJob along with the PDB files, but it's not working. 我正在尝试将我的WebJob和PDB文件一起发布,但是它不起作用。 I have included them under Properties -> Publish -> Application files. 我将它们包括在“属性”->“发布”->“应用程序文件”下。

As per this Answer 按照这个答案

申请文件

But they are still not deployed: 但是它们仍然没有部署:

申请文件

I'm publishing by right clicking the project and then "Publish as Azure WebJob" using a publish profile. 我通过右键单击项目然后使用发布配置文件“发布为Azure WebJob”进行发布。 The PDB files are copied to the bin/release folder when building locally in release-mode. 在发布模式下本地构建时,会将PDB文件复制到bin / release文件夹。

I don't know what else to do, so any help is much appreciated! 我不知道该怎么办,因此非常感谢您的帮助!

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. PDB文件代表程序数据库文件,如果我们正在构建运行需要调试能力的程序的程序,则该文件将生成该PDB文件,这仅意味着检查错误。 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 the continue WebJob when we published our WebJob with Configuration Debug. 当我们使用配置调试发布WebJob时,我们可以对继续WebJob进行远程调试

If we configuration debug and then publish the WebJob to the azure, we can deploy PDB files for Azure WebJob. 如果我们配置调试 ,然后将WebJob发布到Azure,则可以为Azure WebJob部署PDB文件。

在此处输入图片说明

Then we can check that pdb files are uploaded to the kudu. 然后,我们可以检查pdb文件是否已上传到kudu。

在此处输入图片说明

I'm publishing by right clicking the project and then "Publish as Azure WebJob" using a publish profile. 我通过右键单击项目然后使用发布配置文件“发布为Azure WebJob”进行发布。 The PDB files are copied to the bin/release folder when building locally in release-mode 在发布模式下本地构建时,会将PDB文件复制到bin / release文件夹

So base on my understanding, it seems not make sense to upload pdb files to the Azure WebJob with configuration release . 因此,根据我的理解,使用配置版本将pdb文件上传到Azure WebJob似乎没有意义。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM