473,804 Members | 3,018 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2124

"Andrew Kidd" <an****@nospam. com> wrote in message
news:ue******** *****@TK2MSFTNG P10.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******** *****@TK2MSFTNG P10.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****@newsgro ups.nospam> wrote in message
news:%2******* *********@TK2MS FTNGP15.phx.gbl ...

"Andrew Kidd" <an****@nospam. com> wrote in message
news:ue******** *****@TK2MSFTNG P10.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<NOSPAMNO SPAM> wrote in message
news:lr******** *************** *********@4ax.c om...

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****@newsgro ups.nospam> wrote in message
news:%2****** **********@TK2M SFTNGP15.phx.gb l...

"Andrew Kidd" <an****@nospam. com> wrote in message
news:ue******** *****@TK2MSFTNG P10.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******** *****@TK2MSFTNG P10.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.publi c.dotnet.langua ges.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******** ********@TK2MSF TNGP15.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***********@f eedback.microso ft.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.publi c.dotnet.langua ges.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

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

Similar topics

7
3131
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 how it got that way. This report is based on a simple query of the database. It is in landscape mode, but there's a lot of data and I have the margins set to 0.2" on the left and right. It's only a page long. The labels and text boxes on the...
1
2050
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. I am using the final VS2005Pro, running on WinXP MCE 2005 on a Laptop. Any Suggestions?
4
4787
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 and the only way get it up and running again is to kill the aspnet_wp.exe process. When the debugger hangs there is almost no CPU load, so it doesn't seem to be any hidden eternal loop or anything like that. I have tried to reinstall IIS and...
1
1165
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 deploying the debug version on the production server to continue doing some "real world" testing). Because my hosting company doesn't grant debugging permissions on their instance of SqlServer this prevented connections from being created. No...
4
1791
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 and I no longer have that option (Enable ASP.NET debugging checkbox on the project properties Debug Tab). I can still debug the app by attaching to the aspnet_wp.exe process. However, is there another way to do it - has this option been moved...
6
10727
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
7802
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 app.config file referencing arbitrary versions of the plug-in components they wish to consume. Here's the problem: Assuming I have installed any one of our application software,
3
2426
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 on this machine with breakpoints and all.
3
3590
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
9579
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10321
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10077
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9152
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7620
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6853
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5522
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2991
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.