Search code examples
c#uwpvisual-studio-2019full-trust

Troubleshooting Symbol Loading Issues - Visual Studio 2019 - Step Into no longer working


Quite suddenly no symbols are loading correctly for my UWP project in Visual Studio. When I establish a breakpoint, then press Step Into, every time it says that the appropriate symbol is not loaded.

Previously, this was working fine and did not throw these symbol load errors so it seems I must have messed something up but have no clue as to what.

I recently modified my UWP application to include a full trust helper.

I know this is quite vague but wondering where I should start when troubleshooting this kind of issue?

So far I have:

  • Restarted my machine
  • Rebuilt my project
  • Deleted OBJ and BIN folder in explorer
  • Deleted visual studio temporary memory

Any ideas as to what I should look into?


Solution

  • The build configuration of the solution or some of your projects within may have changed at some point, it's normally what catches me out.

    Build Configuration:

    Open Build \ Configuration Manager and check the project you're expecting symbols from is set to a debug based configuration. Symbols are not included in release builds by default.

    Configuration Manager

    Project Configuration:

    Open Project \ {ProjectName} Properties \ Build \ Output \ Advanced... and ensure that debugging information is not set to 'None' ('Pdb-only' or 'Portable' is fine)

    Advanced Build Settings

    Note: I don't have the reputation to post this as a comment yet, sorry!