79579381

Date: 2025-04-17 13:43:46
Score: 1
Natty:
Report link

I finally found the solution myself by retrying later and with a bit of rewording in the searches. A page of the MSDN explains the syntax to re-enter the CLR-realm from a bare address.

https://learn.microsoft.com/en-us/visualstudio/debugger/memory-windows?view=vs-2022#view-memory-pointers-net

The syntax is the following:

{CLR}@address

where address is your bare address, e.g. 0x0000007f12345678. The CLR/debugger will apparently happily figure out for you the type of the data pointed by that address, no need to specify the typing (of course the CLR knows the type, doesn't it!).

E.g.: {CLR}@0x0000007f12345678

Here's a quick screen capture with a managed string in C#:

Example of usage of the {CLR}@address syntax in a watch to view a managed variable contents only knowing its bare address

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: tomoyo255