Mark asked this 2 years ago

Enable native code debugging in VS 2015

I'm using Visual Studio 2015 Community edition to create a Windows IoT background application on VB.NET. When I try to debug with watch on certain variables, i see the message

"To inspect the native object, enable native code debugging."

How do i do this?

 


gareth 2 years ago
1 like

From the project menu select project properties

Click debug tab and select the check box:

Enable unmanaged code debugging

jerry 2 years ago
1 like

 There is no enable unmanaged code debugging checkbox in VS2015

mkbaines 2 years ago
2 likes

From the project menu, select properties -> Click debug from left side menu.Under Debugger Type you have Application Process and Background Task process. For each application type you can select one of the following option from the drop down combobox:

 

  - Managed only

  - Native only

  - Mixed (Managed and Native)

  - Script

In your case you should select Mixed