>I still don't have it clear...
>
[quoted text clipped - 19 lines]
>> Jeppe Jespersen
>> Denmark
> RTM
> http://msdn2.microsoft.com/en-us/library/350dyxd0.aspx
>
> What you want is a data breakpoint. These are only available in C++
> navtive code .
The essential problem here is that, even though the JIT turns your managed
code into native code, and the processor debug registers allow you to break
when a memory location is written, the garbage collector will move your
variable here, there, and everywhere and not adjust the address in the debug
register. Maybe you can find a way using a pinning pointer. Or you could
use a (global static) gcroot, set a data breakpoint on that to find out when
your variable gets moved around in the gc heap, and then update the data
breakpoint on the variable. That breakpoint would be hit once each time the
gc collects your generation -- so probably not much fun to track by hand.
>>I still don't have it clear...
>>
[quoted text clipped - 20 lines]
>>> Jeppe Jespersen
>>> Denmark
Loy - 22 Oct 2006 09:04 GMT
Thanks Ben and Noah
Seems like we need help from the sos.dll developers
I know this is tricky due to heap compaction by the GC
Your (Ben) point about memory hit by the GC itself is a good point I
learned
The complexity of this issue cry for help from Microsoft
It would be highly appreciated if the next version of SOS will allow
setting data breakpoint
- and do all the necessary work to move the breakpoint and ignore GC
itself reading the memory ... - behind the scenes
I assume the same issue exists in Visual studio - and might explain
why conditional breakpoints don't always work
This is a needed tool while debugging and not having it make it harder
to debug some issues in .net applications.
Hope I'm not asking for too much
Loy
> > RTM
> > http://msdn2.microsoft.com/en-us/library/350dyxd0.aspx
[quoted text clipped - 36 lines]
> >>> Jeppe Jespersen
> >>> Denmark
Loy - 31 Oct 2006 10:49 GMT
Can someone from MSFT give us insight?
Loy
> Thanks Ben and Noah
>
[quoted text clipped - 59 lines]
> > >>> Jeppe Jespersen
> > >>> Denmark