Re: private fields of component show up in debugger
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Tue, 03 Jul 2007 06:28:43 GMT
Hi Hairlip,
I think Pete's explanation is reasonable. For the accessor of class(such as
private, protected, public), they will restrict the accessibility of class
members in program(from other classes in same assembly or from other
assemblies). However, debugger is not restricted by these accessors. The
debugging tools will directly inspect the runtime program's memory to get
the execution data structure and contents of the application being debuged.
And as long as the program (being debuged) provide the necessary metadata
and symbols, the debugging tools can inspect into each data
member/variables in the program. Here when you debugging the console
application(and also the referenced class library assembly), the VS IDE can
get the symbols, so all the variables is available in debugger.
here are some information about symbols and debugging:
http://www.microsoft.com/whdc/devtools/debugging/debugstart.mspx
http://www.codeproject.com/useritems/symbols.asp
Anyway, if what you worry about is only the debugger, you can think it
completely different from the container application since whether container
application can see the referenced class library assembly's internal data
or not is determined at compile/build time(according to the member accessor
).
If you still have any question on this, please feel free to post here.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- Re: private fields of component show up in debugger
- From: HairlipDog58
- Re: private fields of component show up in debugger
- References:
- Re: private fields of component show up in debugger
- From: Peter Duniho
- Re: private fields of component show up in debugger
- From: Peter Duniho
- Re: private fields of component show up in debugger
- From: Peter Duniho
- Re: private fields of component show up in debugger
- Prev by Date: Error Logging
- Next by Date: Query on User Authentication aganist ADS
- Previous by thread: Re: private fields of component show up in debugger
- Next by thread: Re: private fields of component show up in debugger
- Index(es):
Relevant Pages
|