Sokeks
Sokeks

Reputation: 47

C++/CLI debug support under VS2015

Using Visual Studio, I have created Excel addin (.xll), where part of the code (the main project) is written in Native C++, but additional static library is written in C++/CLI (I need to use .NET dlls directly). Whole addin is compiled and started in Excel correctly - I can also debug it using Visual Studio 2013, BUT I cannot debug it using Visual Studio 2015. I can breakpoint in the Native C++ code, but when I try to Step Into C++/CLI function, I can see debugger behaves as doing Step Over. I am aware of this article:

https://blogs.msdn.microsoft.com/visualstudioalm/2013/10/16/switching-to-managed-compatibility-mode-in-visual-studio-2013/

but it seems like "Use Managed Compatibility Mode" doesn't work in 2015 (while it works in 2013). Is anyone aware how to make VS2015 work for me?

Upvotes: 0

Views: 2325

Answers (1)

tukra
tukra

Reputation: 921

I had the same problem but it went away. I must have fiddled with a setting but never figured out specifically what it was.

In Tools>Options>Debugging I've got:
"Use Managed Compatibility Mode" : off "Use Native Compatibility Mode" : on

Also in Project>Properties>Debugging I have:
Debugger Type: Mixed

Upvotes: 3

Related Questions