Visual Studio Watch Window: Viewing structures when out of type definition context
I was debugging a release project, where I was in disassembly, and I needed to trace back up the callstack to look at some of the parameters. The callstack context was jscript.dll, and it was making an IDispatch::Invoke call. I wanted to look at the DISPPARAMS argument.
If you try (tagDISPPARAMS) 0x01fe3894, it won't work because in the context you are in, the tagDISPARAMS structure is not available.
But, if you have any DLLs loaded with debug symbols in the process, you can use the watch window context operator to decode the memory in the watch window. Here's an example of how to do that:
{,,mydll.dll}((tagDISPPARAMS*)0x01f5d514)
I hope somebody finds this helpful.
