Debugging unmanaged code while debugging managed code
- Go to the Managed project property.
- Right click on it and go to the debug tab.
- There is a section called enable debugger under that section.
- Check the "Enable native code debugging" option
then you will be able to debug the native code. Good luck !!!
Please refer the below attached image highlighted with red rectangle.
By default a managed project will only start the debugger with managed debugging enabled. It doesn't consider that there are unmanaged projects in the same solution. In order to debug both you need to explicitly enable unmanaged code debugging.
- Right Click on the project and select properties
- Go to the Debug tab
- Check "Enable Unmanaged code debugging"