如何启用从 C# 调用的 Visual Studio C++ 的调试 [英] how to enable debugging of visual studio C++ called from C#
问题描述
(修改问题)我在 C# 中有一个 Windows 窗体应用程序,它调用了一些 C++,我需要将日志添加到 Visual Studio 中的某个窗口(输出选项卡或立即窗口"选项卡....我不在乎哪个.
(Modifying the question)I have a windows form app in C# which calls into some C++, and I need to add logs that log to some window in visual studio(output tab or the 'immediate window' tab....I don't care which.
我有这篇文章,但这些解决方案都没有奏效.....如何登录win32 c++Visual Studio 输出窗口?
I had this post but none of those solutions worked..... how to log in win32 c++ to the visual studio output window?
下面的评论提到我可以打开调试,但没有调试选项卡",也没有任何选项卡,所以我不确定如何在下图中启用调试...
A comment below mentions I can turn debugging on, but there is no "debug tab", there are no tabs whatsoever so I am not sure how to enable debugging in the following picture...
谢谢,院长
推荐答案
我也没有看到如何设置启用非托管调试?
I don't see how to set Enable unmanaged debugging either?
在您的 C# EXE 项目上,而不是在您的 C++ 项目上.右键单击 C# 项目,属性,调试选项卡:
On your C# EXE project, not your C++ project. Right-click the C# project, Properties, Debug tab:
这篇关于如何启用从 C# 调用的 Visual Studio C++ 的调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!