Partilhar via


Debugger2.WriteMinidump(String, dbgMinidumpOption) Method

Definition

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

public:
 void WriteMinidump(System::String ^ FileName, EnvDTE80::dbgMinidumpOption Option);
public:
 void WriteMinidump(Platform::String ^ FileName, EnvDTE80::dbgMinidumpOption Option);
void WriteMinidump(std::wstring const & FileName, EnvDTE80::dbgMinidumpOption Option);
[System.Runtime.InteropServices.DispId(1001)]
public void WriteMinidump (string FileName, EnvDTE80.dbgMinidumpOption Option);
[<System.Runtime.InteropServices.DispId(1001)>]
abstract member WriteMinidump : string * EnvDTE80.dbgMinidumpOption -> unit
Public Sub WriteMinidump (FileName As String, Option As dbgMinidumpOption)

Parameters

FileName
String

The file name of the program being debugged.

Option
dbgMinidumpOption

A dbgMinidumpOption constant specifying whether a full or normal dump is written.

Attributes

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  

Applies to