imetadataimport

Debugger StepInto auto-generated code and JMC issue

做~自己de王妃 提交于 2019-12-22 12:24:04
问题 I'm making a managed .NET debugger using MDBG sample. Currently I'm struggling with StepInto behavior, while StepOut and StepOver seems to work. To achieve Just-My-Code stepping I'm calling SetJMCStatus on modules load. That works fine and allow me to debug just my code. But since I'm setting entire module as JMC, some auto-generated code comes into play and ruin stepping-into. An example of such code could be auto-property. Since debugger is executing Il instructions, with step-into I'm

Problems with IMetaDataImport::ResolveTypeRef Method

∥☆過路亽.° 提交于 2019-12-06 04:05:46
问题 I have my own debugger for .NET apps that uses IMetaDataImport interface When I call ResolveTypeRef method, I always get NotImplementedException . The definition of ResolveTypeRef is like this: [ComImport] [Guid("....")] //a valid GUID [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [CLSCompliant(false)] public interface IMetaDataImport { void ResolveTypeRef( [ComAliasName("mdTypeRef")] mdToken tr, [ComAliasName("REFIID")] ref Guid riid, [ComAliasName("IUnknown**"), Out, MarshalAs

Problems with IMetaDataImport::ResolveTypeRef Method

☆樱花仙子☆ 提交于 2019-12-04 10:42:58
I have my own debugger for .NET apps that uses IMetaDataImport interface When I call ResolveTypeRef method, I always get NotImplementedException . The definition of ResolveTypeRef is like this: [ComImport] [Guid("....")] //a valid GUID [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [CLSCompliant(false)] public interface IMetaDataImport { void ResolveTypeRef( [ComAliasName("mdTypeRef")] mdToken tr, [ComAliasName("REFIID")] ref Guid riid, [ComAliasName("IUnknown**"), Out, MarshalAs(UnmanagedType.IUnknown)] out object ppIScope, [ComAliasName("mdTypeDef*"), Out] out mdToken ptd ); // ...