Title: Remote Debugging Class Library for ClickOnce App
Tags: .net;visual-studio-2010;clickonce;remote-debugging
Question: I am trying to set up remote debugging on one of our internal systems as there is a function in a class library that keeps failing for our users but not me. I have the folder share to my remote debugger folder set up and I can attach to the process on their machine but I get the following message:
The following module was built either with optimizations enabled or without debug information: ....
How do I satisfy this requirement?
I checked and optimizations is not enabled but how do I get the .pdb files to the user when using ClickOnce?  Is that even my issue?

Here is the accepted answer: In the project you're publishing via ClickOnce:
Open Properties for the project
Click the Publish (vertical) tab
Click the Application Files button
From this screen, you can add/remove files (like .pdb files) from the ClickOnce deployment.
You do not need to use a Debug release to include .pdb files - Release mode can be used.
More info about .NET .pdb files here, here, and here.
Comment for this answer: Thanks, I didn't know you could publish the pdb's with the app.


{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2010:00:09/07/10', 'FavoriteCount': 1.0, 'PostTypeId': 1, 'Tags': '<.net><visual-studio-2010><clickonce><remote-debugging>', 'Title': 'Remote Debugging Class Library for ClickOnce App', 'ViewCount': 1108, 'id': 3662199, 'user_AboutMe': '<p>My Philosophy</p>\n', 'user_AccountId': 19805.0, 'user_DisplayName': 'Refracted Paladin', 'user_Reputation': 11936.0, 'user_Views': 2203.0, 'user_id': 46724.0}}