question

LingSteven avatar image
1 Vote"
LingSteven asked LingSteven commented

Visual studio doesn't copy the .pdb file into Appx folder

Hi,

I was debugging a UWP app. I found that the exception stack trace doesn't contain the line numbers. After a lot of tests, I found that the .pdb file doesn't be copied to the Appx folder. Maybe, it's the root issue. How to deal with this issue?

Microsoft Visual Studio Professional 2017
Version 15.9.4

Thanks,
Steven

vs-msbuild
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DylanZhu-MSFT avatar image
0 Votes"
DylanZhu-MSFT answered LingSteven commented

Hi LineSteven,

I have created a new uwp application on my side. The line number can be displayed in call stack window, and the pdb is not in appx folder. So,

  • Is the pdb file copied into output directory?

  • You can try to delete .vs folder in your solution directory

Best Regards,
Dylan


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

>>Is the pdb file copied into output directory?

Did you mean the pdb file should be copied into '...\bin\x86\Debug'?

>>You can try to delete .vs folder in your solution directory

What is the purpose of deleting the .vs folder?



0 Votes 0 ·

@DylanZhu-MSFT I've tried it. The exception stack trace still doesn't contain line numbers.

1 Vote 1 ·

Hi @LingSteven , 1. yes, the pdb will be generated in output directory, instead of AppX folder. 2. The .vs folder is used to save related configuration of visual studio in your current project. Deleting it is just to reset "current environment.

0 Votes 0 ·