VS 2010, NUNit, and “The breakpoint will not currently be hit. No symbols have been loaded for this document”

后端 未结 9 1123
盖世英雄少女心
盖世英雄少女心 2021-02-05 02:38

Using Windows 7 32 bit, VS 2010, .NET 4 DLL, NUnit (2.5.5) to unit test the application. I\'m currently getting the following error; seen plenty of posts and tried the followin

相关标签:
9条回答
  • 2021-02-05 03:14

    Are you running NUnit and then loading the DLL? Try instead opening the project properties, Debug tab, switch the start action to 'Start external program', point to the NUnit exe, put your dll name in 'command line arguments'. Then start the library project right-clicking it and choosing Debug -> start new instance.

    0 讨论(0)
  • 2021-02-05 03:15

    I was getting "break point will not be hit ... no symbols loaded ..." for a website project. Found that there were build errors in my website (one of the referenced dll's went missing for some reason). Rebuilds didn't show the problem until I selected View=>Error list in VS2010, prior to the rebuild. Replacing the missing dll in the bin dir & updating the reference solved my problem.

    0 讨论(0)
  • 2021-02-05 03:17

    The resolution was: start NUnit stand alone, then in VS 2010, do debug > attach to process, and attach to the nunit-agent.exe process, not the nunit process. Nunit process still didn't do it for me.

    0 讨论(0)
提交回复
热议问题