Debugger2.WriteMinidump Method

If debugging a program and in Break mode, this function creates a minidump of the current debugging session.

Namespace:  EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

Syntax

'Declaration
Sub WriteMinidump ( _
    FileName As String, _
    Option As dbgMinidumpOption _
)
void WriteMinidump(
    string FileName,
    dbgMinidumpOption Option
)
void WriteMinidump(
    [InAttribute] String^ FileName, 
    [InAttribute] dbgMinidumpOption Option
)
abstract WriteMinidump : 
        FileName:string * 
        Option:dbgMinidumpOption -> unit
function WriteMinidump(
    FileName : String, 
    Option : dbgMinidumpOption
)

Parameters

  • FileName
    Type: System.String

    The file name of the program being debugged.

Examples

Sub WriteMinidump()
    Dim dbg As EnvDTE80.Debugger2
    dbg = DTE2.Debugger

    if MsgBox("This macro expects that we are currently debugging an _
    app and that it is in break mode.",MsgBoxStyle.OKCancel) = _
    MsgBoxResult.OK then
        dbg.WriteMinidump("c:\test.dmp", 0)
        MsgBox("Minidump was written to c:\temp\test.dmp")
    End If
End Sub

.NET Framework Security

See Also

Reference

Debugger2 Interface

EnvDTE80 Namespace