marshaling MDA

The marshaling managed debugging assistant (MDA) is activated when the CLR sets up marshaling information for a method parameter or a field of a structure. This MDA does not work for JIT-compiled assemblies.

Effect on the Runtime

This MDA has no effect on the CLR.


The MDA displays the type of the parameter or field in the managed and unmanaged contexts, and the structure or method containing the type. The following is an example of the output for a field:

Marshaling from 'Char' to 'ANSI char'


The MDA configuration allows you to filter the reported marshaling information based on the involved field or method names. The following example shows the use of the methodFilter, fieldFilter, and match elements to specify filters. Setting the name attribute to an asterisk (*) will match everything.

        <match name="Method1"/>
        <match name="Method2"/>
        <match name="Field1"/>
        <match name="Field2"/>

See Also


Diagnosing Errors with Managed Debugging Assistants

Interop Marshaling Overview



Other Resources