在visual studio中调试一个可执行文件 [英] Debugging an executable in visual studio

查看:221
本文介绍了在visual studio中调试一个可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

想在调试器下调试可执行文件。如何在visual studio中做到这一点。



Windbg有一个可选的可执行文件。但是我发现VS 2010中缺少这个。



问题与
在visual studio 2010中调试exe $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $

相反,只需要在调试器下调试exe,一旦它被破坏,想要
设置一些断点,并了解执行流程。



尽管图像文件执行是一种解决方法。



我不知道这个问题是否天真;但是这是一个非常直线的用例场景,我发现在MS VS 2010中缺少。

解决方案

你没有指定这个问题,但我假设你没有源代码。只需使用文件/打开项目/解决方案,选择EXE文件并打开它。然后选择Debug / Start调试。另一个选项是首先运行EXE,然后选择调试/附加来处理。


Want to debug an executable under debugger. How to do it in visual studio.

Windbg has an option of open executable. But I find this is missing in VS 2010.

The question is not exactly same as Debug exe in visual studio 2010 as I am not really interested in image file execution to debug a start up.

Rather want to just debug the exe under debugger, once it is broken, want to set some break points and understand the flow of execution.

Albeit image file execution is a workaround for this.

I am not sure if this question is naive; But this is a very straight line use case scenario, I find missing in MS VS 2010.

解决方案

You did not specify it in the question, but I assume you do not have the source code. Just use File/Open Project/Solution, select EXE file and Open it. Then select Debug/Start debugging. The other option is to run the EXE first and then Select Debug/Attach to process.

这篇关于在visual studio中调试一个可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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