Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Attach to native code when debugging unit tests through ReSharper

When using ReSharper to debug NUnit tests from within Visual Studio 2008, is it possible to have the ReSharper test runner attach to the native code debugger? By default it only attaches the Visual Studio managed debugger.

like image 945
pauldoo Avatar asked May 02 '11 10:05

pauldoo


People also ask

How do I run unit tests with ReSharper?

Ctrl+U R / Debug Unit Tests. Ctrl+U D on the toolbar. To run all tests in the session, click Run Current Session. Ctrl+U Y on the toolbar or alternatively, choose ReSharper | Unit Tests | Run Current Session from the main menu.

How do I debug the native code?

For Visual Basic, select Debug in the left pane, select the Enable native code debugging check box, and then close the properties page to save the changes. Select Debug in the left pane, select the Enable native code debugging check box, and then close the properties page to save the changes.

Can you debug a unit test code?

You can use Test Explorer to start a debugging session for your tests. Stepping through your code with the Visual Studio debugger seamlessly takes you back and forth between the unit tests and the project under test.

How do I test code coverage in Visual Studio?

On the Test menu, select Analyze Code Coverage for All Tests. You can also run code coverage from the Test Explorer tool window. Show Code Coverage Coloring in the Code Coverage Results window. By default, code that is covered by tests is highlighted in light blue.


1 Answers

In the settings for your test project, in the Debug tab, check the "Enable unmanaged code debugging"

like image 138
Peter Ritchie Avatar answered Nov 14 '22 17:11

Peter Ritchie