3

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?

brett rogers
  • 6,501
  • 7
  • 33
  • 43
Refracted Paladin
  • 12,096
  • 33
  • 123
  • 233

1 Answers1

6

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.

Community
  • 1
  • 1
GWLlosa
  • 23,995
  • 17
  • 79
  • 116