473,386 Members | 1,842 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Debugging in VS2005 - why is some code shaded grey?

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.
Jan 5 '06 #1
10 2095

"Andrew Kidd" <an****@nospam.com> wrote in message
news:ue*************@TK2MSFTNGP10.phx.gbl...
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.

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?
Jan 5 '06 #2

"Andrew Kidd" <an****@nospam.com> wrote in message
news:ue*************@TK2MSFTNGP10.phx.gbl...
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.

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.
Jan 5 '06 #3

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:
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...

"Andrew Kidd" <an****@nospam.com> wrote in message
news:ue*************@TK2MSFTNGP10.phx.gbl...
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.

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.



Jan 5 '06 #4
Hi Joergen ... that's what I'm suspecting, just wanting confirmation as I
couldn't find anything in the documentation.
"Joergen Bech @ post1.tele.dk>" <jbech<NOSPAMNOSPAM> wrote in message
news:lr********************************@4ax.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:
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.. .

"Andrew Kidd" <an****@nospam.com> wrote in message
news:ue*************@TK2MSFTNGP10.phx.gbl...
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.
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.


Jan 5 '06 #5
Hi Andrew,

Have you stepped through the list in your Fonts and Colors settings to see
what's back-shaded gray? I've got several things that are. If you're not
sure which it is, try changing the items to some bright color one-by-one and
see if that shows up in your code.

--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
ci**************@msn.com www.cindywinegarden.com
"Andrew Kidd" <an****@nospam.com> wrote in message
news:ue*************@TK2MSFTNGP10.phx.gbl...
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.

Jan 5 '06 #6
In VB2005, Edit and Continue is finally possible while debugging. Code which is grey cannot be edited during debugging (because it would require a total recompilation of the project for whatever reason -- public method, exception handler redirection, etc.) -- that's all it means.

Hope this helps!
--Matt Gertz--*
VB Compiler Dev Lead

-----Original Message-----
From: Andrew Kidd
Posted At: Thursday, January 05, 2006 2:53 AM
Posted To: microsoft.public.dotnet.languages.vb
Conversation: Debugging in VS2005 - why is some code shaded grey?
Subject: Debugging in VS2005 - why is some code shaded grey?
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.
Jan 6 '06 #7
Turns out it's tied to the "Visual Basic Read Only Marker" in the Options >
Fonts and Colors > Display items dialog, which makes sense since, as Matt
said, it can't be edited during debugging.

--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
ci**************@msn.com www.cindywinegarden.com
"Cindy Winegarden" <ci**************@msn.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi Andrew,

Have you stepped through the list in your Fonts and Colors settings to see
what's back-shaded gray?

Jan 6 '06 #8
Apart from your kind repply, Matt...

I'd like to say that's great that developers from MS are actually
exchanging thoughts with the developer community.

It's a wonderful thing being able to interact with the real people who
develops the tools we use.

Thanks...

PJ
http://pjondevelopment.50webs.com/

Jan 6 '06 #9

Thanks for clearing that up. I hadn't noticed it before.

Very useful. After a long time with VS2003 I had gotten used
to NOT having edit'n'continue, so I hardly ever use it, even
though it is there now. Did not make the connection.

Regards,

Joergen Bech

On Thu, 05 Jan 2006 15:52:03 -0800,
Ma***********@feedback.microsoft.com wrote:
In VB2005, Edit and Continue is finally possible while debugging. Code which is grey cannot be edited during debugging (because it would require a total recompilation of the project for whatever reason -- public method, exception handler redirection, etc.) -- that's all it means.

Hope this helps!
--Matt Gertz--*
VB Compiler Dev Lead

-----Original Message-----
From: Andrew Kidd
Posted At: Thursday, January 05, 2006 2:53 AM
Posted To: microsoft.public.dotnet.languages.vb
Conversation: Debugging in VS2005 - why is some code shaded grey?
Subject: Debugging in VS2005 - why is some code shaded grey?
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.


Jan 6 '06 #10
I must assure you that it's a two-way street :-). It's fun to code up a language and language services, particularly one which has as wide a reach as VB, but it's impossible to predict all of the billions of ways that customers are going to use it, and without the customer contact, we developers tend to get a little isolated from customers and the directions that they want to head. There's certainly been more than one occasion where Product Support has handed us a customer bug and we've scratched our heads and thought "Oh, cool idea, but who knew that customers were going to need to use the product *that* way?" Ergo, for the past 3 or so years, we've been trying to build up a better presence on the newsgroups, forums, and blogs so that we can help people get the most out of the product, but almost more importantly to get a better idea what people need.

Have you checked out the forums at http://forums.microsoft.com? A lot of MS folk hang out there as well (including me), and the only reason I don't additionally have a blog that 90% of what I do each day would be utterly tedious to read. ("Triaged 54 bugs today, attended Divisional Tactics meeting to plan milestone exit criteria, verified that VB was on track to meet stepdown goals for known code defects" ... yawn...)

--Matt--*

-----Original Message-----
From: PJ on Development
Posted At: Thursday, January 05, 2006 11:22 PM
Posted To: microsoft.public.dotnet.languages.vb
Conversation: Debugging in VS2005 - why is some code shaded grey?
Subject: Re: Debugging in VS2005 - why is some code shaded grey?
Apart from your kind repply, Matt...

I'd like to say that's great that developers from MS are actually
exchanging thoughts with the developer community.

It's a wonderful thing being able to interact with the real people who
develops the tools we use.

Thanks...

PJ
http://pjondevelopment.50webs.com/
Jan 9 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: msrado | last post by:
Hi All, I have a report in Microsoft Access 2000 that appears with standard blank font in a print preview and shaded grey font in a printout. I don't want it to be shaded and can't figure out...
1
by: DEWright_CA | last post by:
I have built a pretty basic site and now when I try t debug it I get a error that says; {0}: Build (web): "The type initializer for 'System.Web.Compilation.CompilationLock' threw an exceptoin. ...
4
by: Martin Odhelius | last post by:
Hello, I have a very fustrating problems while debugging ASP.NET applications. When I am debugging and stepping thru code (with F10 or F11) Visual Studio some times suddenly just stop responding...
1
by: Mark Olbert | last post by:
I don't know if these two problems are related or if they're independent. In moving my site to a production server I discovered that I had enabled T-SQL debugging and forgotten to turn it off (I'm...
4
by: Peter Sutcliffe | last post by:
In VS2003 I had a class library project that I started via a URL and I had ASP.NET debugging enabled to allow me to debug the web pages code behind in my project. I have moved the app to VS2005...
6
by: Rob R. Ainscough | last post by:
I can't seem to locate the appropriate area in VS 2005 where I can accomplish this -- is this a C# only option? Thanks, Rob.
5
by: phnimx | last post by:
Hi , We have developed a number of plug-in .NET Library Components that we typically deploy with our various applications by installing them into the GAC. Each of the applications contains an...
3
by: Pixel.to.life | last post by:
All, A question on JIT debugging with VS2005. I have a managed app that builds great on one machine (Vista Home basic, VS2005, JIT enabled for managed/unmanaged code). I can also debug it...
3
by: =?Utf-8?B?cmF1bGF2aQ==?= | last post by:
Vista sp1 C# Hi: after I opened a vs2005 IDE... my breakpoints when debugging in vs2008 dont work any more, any ideas? the test finished but It does not stop. Thanks
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.