调试 - 我怎么逐行执行代码行? [英] Debugging - how do I execute code line by line?

查看:162
本文介绍了调试 - 我怎么逐行执行代码行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个很难调试我的C#应用​​程序在Visual Studio中。我无法弄清楚如何调试一行行代码,而不是在程序启动的时刻(因为我将不得不F5很多次的程序大约需要200行只是初始化)。我的意思是让我们假设我想调试在某一时刻开始。类似的代码,但没有实际创建的断点(这我想创建他们每次花费了大量的时间),每行有一个断点。

I am having a hard time debugging my C# app in Visual Studio. I can't figure out how to debug code line by line, but not at the moment the program starts (because I would have to F5 a lot of times as the program takes about 200 lines just to initialize). I mean let's assume I would like the debugging to start in a certain moment. Something like having a breakpoint in every line of code but without actually creating the breakpoints (which would take a lot of time every time I want them to be created).

我希望我有些清楚了。

推荐答案

我不的完全的清楚你以后。 ..

I'm not entirely clear what you're after...


  • 如果你不知道怎么踩线,由线,把一个断点要的启动的一行调试线(或暂停的应用程序),然后使用<大骨节病> F10 为步过或<大骨节病> F11 为进入,而不是<大骨节病> F5 (走)。

  • If you're not sure how to step line, by line, put a breakpoint where you want to start debugging line by line (or pause the app) then use F10 as "Step Over" or F11 as "Step Into" instead of F5 ("Go").

如果你不知道如何闯入应用程序时,你想,你可以打随时暂停按钮,在调试器中,或添加要停止的应用程序已经启动即使一个断点。

If you're not sure how to break into the app when you want to, you can hit the "pause" button in the debugger at any time, or add a breakpoint where you want to stop even after the app has started.

如果这些都不是有帮助的,请给出更多的信息。

If neither of these is helpful, please give more information.

这篇关于调试 - 我怎么逐行执行代码行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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