在Visual Studio中调试非托管C ++映像 [英] Debugging unmanaged C++ images in Visual Studio

查看:114
本文介绍了在Visual Studio中调试非托管C ++映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2010中,我写了很多图像处理代码,其中包含了非托管C ++中涉及的许多不同的图像。我希望能够在逐步调试时轻松地看到它们,作为一个简单的标识符。 / p>

我目前的解决方案是使用一些在Matlab控制台中导出图像的功能。没关系,但是需要修改源代码,而我想在调试时做到这一点。所以最好的选择只是在鼠标悬停包含变量的同时弹出图像。但是在命令窗口中编写一些命令 ExportToMatlab(image)就足够了。不过,我不知道该怎么办。



有一个非常相似的问题。可以从SourceForge项目页面下载 NativeViewer 。检查有关如何使用它的描述。

解决方案

只是为了历史:我已经实现了我自己的解决方案,基于表达式计算器加载项。它不够好,但我能够实现所有我需要的。



更新



我创建了一个公开的Visual Studio扩展。可以从SourceForge项目页面下载 NativeViewer 。检查有关如何使用它的说明。


I do write lots of image processing code with lots of different images involved on unmanaged C++ under Visual Studio 2010. I want to be able to watch them almost as easily, as a simple identifier while step-by-step debugging.

My current solution is to use some function which exports image in Matlab console. It is ok, but requires modification to source code, while I want to do it just while debugging. So the best option is just image popping up while hovering containing variable by mouse. But writing some command ExportToMatlab(image) in Command Window is enough. I don't know how to do even this, however.

There is the very similar question "Debugging image rendering in Visual C++, any helpful add-ins?", but it is too old and I found no acceptable answers in that discussion. Some tools are .NET-based (see image below), some requires additional code to be written (that's what I currently am using), and some projects are frozen or unfinished.

I can spend some time on implementing appropriate solution, so links to some good guides on how to customize debugger visualizer in VS are welcome too.

Update

I've created a Visual Studio extension based on Expression Evaluator Add-In. It is available to download from its SourceForge project page, called NativeViewer. Check for description on how to use it.

解决方案

Just for history: I've implemented my own solution based on Expression Evaluator Add-In. It doesn't fit well enough, but I was able to implement all what I needed.

Update

I've created a publicly available Visual Studio extension. It is available to download from its SourceForge project page, called NativeViewer. Check for description on how to use it.

这篇关于在Visual Studio中调试非托管C ++映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆