开发者

How to include pdb files in MSI installer to deploy along side the rest of the app?

How to include pdb files in MSI installer to deploy along side the rest of the app?

I want to keep the line numbers and full stack trace in error logs we generate.

Update

The line numbers of the code are not reported in the stac开发者_如何转开发ktrace unless you distribute the pdb's, I've tested this.

How can when I build the MSI and I've asked the MSI installer project to include various project outputs (about 5) to also include the pdb's of those project outputs in the MSI? or how to get this information (code line numbers) from the Exception ex into the logs?


For a Visual Studio Deployment Project you should do:

Add -> Project Output -> Debug Symbols

Also make sure that the *.pdb generation is enabled in each project Build configuration.


I know this is a little late to the OP, but I found that the previous answer needed more clarification (at least for me). For VS2010, when you click Add -> Project Output -> Debug symbols, you need to specify the project in the drop down, and then ctrl+click the "Debug Symbols" for that project. Do this for all the projects that you have, which will entail you clicking Add -> Project Output -> Debug Symbols each time.


For newer versions of Visual Studio you can include .pdb files on deploy using the option under the Project Properties > Package/Publish Web, uncheck the checkbox "Exclude generated debug symbols" and your .pdb files will be published.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜