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

Xie Steven 831 Reputation points
2021-04-13T02:05:58.423+00:00

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

Community Center | Not monitored
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,426 Reputation points
    2021-04-13T05:49:06.427+00:00

    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.**


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.