在VS2005中调试 - 为什么有些代码用灰色阴影? [英] Debugging in VS2005 - why is some code shaded grey?

查看:232
本文介绍了在VS2005中调试 - 为什么有些代码用灰色阴影?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在调试器中踩到时,我看到了这一点...只是想我会问b $ b问我,我只知道它将会是其中之一;卫生署"片刻,但是它已经让我感觉不好了。

I see this when I''m stepping through in the debugger ... just thought I''d
ask, and I just know it''s going to be one of those "Doh" moments, but it''s
got me foxed just now.

推荐答案



Andrew Kidd <一个**** @ nospam.com>在消息中写道

news:ue ************* @ TK2MSFTNGP10.phx.gbl ...

"Andrew Kidd" <an****@nospam.com> wrote in message
news:ue*************@TK2MSFTNGP10.phx.gbl...
我看到这个我在调试器中踩了一下......只是想我会问,我只知道它会成为其中一个Doh。片刻,但它刚刚给我带来了麻烦。
I see this when I''m stepping through in the debugger ... just thought I''d
ask, and I just know it''s going to be one of those "Doh" moments, but it''s
got me foxed just now.



什么样的项目,以及哪种语言?

当我调试C ++时或C#代码,注释是灰色的,但没有其他

语句。

你能举例说明你正在调试的代码中的灰色语句吗?


What kind of project, and which language?
When I debug C++ or C# code, the comments are grayed, but no other
statements.
Can you give an example of a grayed statement in the code you''re debugging?




" Andrew Kidd" <一个**** @ nospam.com>在消息中写道

news:ue ************* @ TK2MSFTNGP10.phx.gbl ...

"Andrew Kidd" <an****@nospam.com> wrote in message
news:ue*************@TK2MSFTNGP10.phx.gbl...
我看到这个我在调试器中踩了一下......只是想我会问,我只知道它会成为其中一个Doh。片刻,但它刚刚让我感到厌烦。
I see this when I''m stepping through in the debugger ... just thought I''d
ask, and I just know it''s going to be one of those "Doh" moments, but it''s
got me foxed just now.



请忽略我之前的部分内容。 (显然)我还没醒。你是使用VB获得


仍然。灰色语句的一个例子很有用。


Please disregard part of my previous. I''m not awake yet (obviously). You''re
using VB.
Still. an example of a grayed statement would be useful.




这不仅仅是为了表明代码块与

选择的行(在这种情况下是尝试)?


我希望相同的行为对于If ...然后,For ... Next,等等?


/ Joergen Bech


On Thu,2006年1月5日14:58:12 -0000,Andrew Kidd < an **** @ nospam.com>

写道:

Isn''t that just to indicate the block of code matching up with the
selected line (in this case "Try")?

I would expect the same behavior for If ... Then, For ... Next, etc?

/Joergen Bech

On Thu, 5 Jan 2006 14:58:12 -0000, "Andrew Kidd" <an****@nospam.com>
wrote:
我知道那种感觉...... ;-) ...我不喜欢是指
代码窗口中文本的颜色,我的意思是背景(参见附图)。

如果我将断点设置为尝试尝试... Catch块,然后Catch
语句的背景颜色设置为灰色...... ???

" pvdg42" < PV **** @ newsgroups.nospam>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP15.phx.gbl ...
I know that feeling ... ;-) ... I don''t mean the colour of the text in the
code window, I mean the background (see the attached example).

If I set the breakpoint to the Try of a Try ... Catch block, then the Catch
statements have their background colour set to grey ... ???
"pvdg42" <pv****@newsgroups.nospam> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...

"安德鲁基德 <一个**** @ nospam.com>在消息中写道
新闻:ue ************* @ TK2MSFTNGP10.phx.gbl ...

"Andrew Kidd" <an****@nospam.com> wrote in message
news:ue*************@TK2MSFTNGP10.phx.gbl...
当我走过时,我看到了这一点在调试器中...只是以为我会问,我只是知道它会成为其中一个Doh。时刻,但它刚刚给我带来了麻烦。
I see this when I''m stepping through in the debugger ... just thought I''d
ask, and I just know it''s going to be one of those "Doh" moments, but it''s
got me foxed just now.


请忽略我之前的部分内容。 (很明显)我还没醒。
你在使用VB。
仍然。灰色语句的一个例子很有用。


Please disregard part of my previous. I''m not awake yet (obviously).
You''re
using VB.
Still. an example of a grayed statement would be useful.







这篇关于在VS2005中调试 - 为什么有些代码用灰色阴影?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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