简体   繁体   中英

No symbols have been loaded - windows service and topshelf

I am trying to debug a windows service. It's running as a console application with Topshelf. The startup project runs fine in with breakpoints and everything but none of the referenced projects in the solution seem to load their symbols. All the .pdb files are in the respective bin-folders. And a copy of all the referenced .pdb files are also in the startup projects bin-folder. Everything builds/rebuilds when i press F5.

  • It worked fine a few days ago and still works fine on all my colleagues PC's.
  • I'm sure I'm running all projects in debug mode.
  • I've cleaned, rebuilt and tried attaching to the process instead of just F5.
  • I get the same behavior in both VS2017 and VS2015.
  • I've deleted all the source code and redownloaded and even reinstalled all versions of VS.

None of the referenced projects show up in the Modules window. (* Actually. One of the referenced projects does show up sometimes, but I don't understand when/why. I can debug that project - when it shows up in the Modules window)

Disable the debug option Enable Just My Code (Tools -> Options)

Be advised; turning this off will slow down start up time of the debugger since loads of symbols will be loaded. It's best to debug the other assemblies in their original solution.

只是我的代码

You can also do this, Start debugging, as soon as you've arrived at a breakpoint or used Debug > Break All. That's it

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM