473,404 Members | 2,213 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,404 software developers and data experts.

addresses/uniqueness not displayed in debugger

I've been using Visual Studio .NET 2003 with C#, and I find it
annoying that some sort of address (unique id / hash code) isn't
displayed when objects are printed in the debugger (e.g.
{System.Data.DataRelation 235} rather than just
{System.Data.DataRelation}). Doing this would make it visibly apparent
that two objects were the same, and speed debugging.

Searching through this forum I found that you can compare two objects
for equality in the Watch window (obj1 == obj2), but I would really
like find some way to fix up the debugger's print routines if that's
possible. Any idea how to do this?

Warren
Nov 15 '05 #1
4 1188
100
Hi Warren,
I thing the debugger shows the string that ToString() method produce. Try to
override this method in order to show whatever you want.

HTH
B\rgds
100
"Warren Harris" <go*************@recursor.net> wrote in message
news:7e**************************@posting.google.c om...
I've been using Visual Studio .NET 2003 with C#, and I find it
annoying that some sort of address (unique id / hash code) isn't
displayed when objects are printed in the debugger (e.g.
{System.Data.DataRelation 235} rather than just
{System.Data.DataRelation}). Doing this would make it visibly apparent
that two objects were the same, and speed debugging.

Searching through this forum I found that you can compare two objects
for equality in the Watch window (obj1 == obj2), but I would really
like find some way to fix up the debugger's print routines if that's
possible. Any idea how to do this?

Warren

Nov 15 '05 #2
100 wrote:
Hi Warren,
I thing the debugger shows the string that ToString() method produce.
Try to override this method in order to show whatever you want.


It doesn't. See the \Program Files\Microsoft Visual Studio
..NET\Common7\Packages\Debugger\mcee_cs.dat file.

I agree with the OP though - it should display some kind of unique value for
each object.

--
Arild Fines

http://ankhsvn.tigris.org
A Visual Studio .NET Addin for the Subversion version control system.
Nov 15 '05 #3
100
Hi Arild,
Thanx for pointing this out. Mine was just a wild guess.

B\rgds
100

"Arild Fines" <ar*********@should.not.be.here.broadpark.no> wrote in message
news:Oc**************@TK2MSFTNGP09.phx.gbl...
100 wrote:
Hi Warren,
I thing the debugger shows the string that ToString() method produce.
Try to override this method in order to show whatever you want.

It doesn't. See the \Program Files\Microsoft Visual Studio
.NET\Common7\Packages\Debugger\mcee_cs.dat file.

I agree with the OP though - it should display some kind of unique value

for each object.

--
Arild Fines

http://ankhsvn.tigris.org
A Visual Studio .NET Addin for the Subversion version control system.

Nov 15 '05 #4
Arild,

Thanks for pointing this out. However, I'm not sure the mcee_cs.dat file
is working for me. Looking at mine, it says that DataGrids print as
{Text=<Text>}:

<System.Windows.Forms.DataGrid=Text=<Text>

although mine clearly don't print that way. They're just
{System.Windows.Forms.DataGrid}. Any idea how to enable this?

But, even with this feature, it doesn't let me do what I'd really like
to do:

<System.Object>=hc=<GetHashCode>

since GetHashCode is a method, not a property.

Warren

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #5

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

Similar topics

10
by: dave | last post by:
Hello, I'm creating a site that has several contact email addresses. These are vlid addresses, i'm wondering if i can use php to alter these addresses so that spam harvesters can't get them, yet a...
1
by: Puvendran Selvaratnam | last post by:
Hi, First of all my apologies if you have seen this mail already but I am re-sending as there were some initial problems. This query is related to defining indexes to be unique or not and...
2
by: Dirk Declercq | last post by:
Hi, Is it possible in Xml to enfore the uniqueness of an element based on his attribute value. Say I have this schema : <?xml version="1.0" encoding="UTF-8"?> <xs:schema...
1
by: Mr. Almenares | last post by:
Hello: I’m trying to do a schema with recurrent structure for a Book like a Node can have many Nodes inside or One leave. So, the leaves have an attribute that is Identifier. My goal is define...
87
by: j0mbolar | last post by:
I've read in the standard that addresses basically can't be interpreted as integers. If they can, it is implementation defined behavior. However, if they can't be viewed as integers in any sense...
1
by: Nathan Sokalski | last post by:
I am making an application that will be used to send an email message to all members in a certain group (such as maybe all exec board, or all IT, or all secretaries, etc.). However, as we all know...
0
by: brbxx99x | last post by:
Hi, I'm just wondering how I can display the outlook address list (the screen that is displayed when one clicks on either the TO, CC or BCC buttons) and retrieve the email addresses that the user...
28
by: anonymous | last post by:
I have couple of questions related to array addresses. As they belong to the same block, I am putting them here in one single post. I hope nobody minds: char array; int address; Questions...
5
by: Alan Little | last post by:
I have affiliates submitting batches of anywhere from 10 to several hundred orders. Each order in the batch must include an order ID, originated by the affiliate, which must be unique across all...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...

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.