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.StringThe file name of the program being debugged.
Option
Type: EnvDTE80.dbgMinidumpOptionA dbgMinidumpOption constant specifying whether a full or normal dump is written.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.