VmDebuggerConnectionInterface Class Reference

#include <vm.h>

Inheritance diagram for VmDebuggerConnectionInterface:

公共成员函数

MAXON_METHOD String   GetName () const
MAXON_METHOD Url   GetPath () const
MAXON_METHOD String   GetStartupScript () const
MAXON_METHOD String   GetShutdownScript () const

私有成员函数

  MAXON_INTERFACE ( VmDebuggerConnectionInterface , MAXON_REFERENCE_NORMAL , "net.maxon.python.interface.vmdebuggerconnection")

成员函数文档编制

◆  MAXON_INTERFACE()

MAXON_INTERFACE ( VmDebuggerConnectionInterface   ,
MAXON_REFERENCE_NORMAL   ,
"net.maxon.python.interface.vmdebuggerconnection"   
)
private

◆  GetName()

MAXON_METHOD String GetName ( ) const

Returns the name of the debugger connection.

返回
Name, e.g. PyDev

◆  GetPath()

MAXON_METHOD Url GetPath ( ) const

Returns the path of the debugger.

返回
Path to the debugger, allowed to be empty.

◆  GetStartupScript()

MAXON_METHOD String GetStartupScript ( ) const

The debugger shutdown code which gets executed in the target language, before the original script gets executed. If the code fails executing, the error is printed to sys.stderr and the actual script will be executed regardless. E.g. For Python:

MAXON_METHOD String GetStartupScript () const { return String ( "try:\n" " import mydebugger\n" " ptvsd.enable_attach(None)\n" "except:\n" " mydebugger = None\n" // before reraising the error, set ptvsd to None, // so a check can be performed in the shutdown script " raise\n" ); // reraise only in case the current error should be printed to sys.stderr }
返回
Startup script, including \n and 4-spaces. Can return an empty string.

◆  GetShutdownScript()

MAXON_METHOD String GetShutdownScript ( ) const

The debugger shutdown code which gets executed in the target language, which gets executed after the actual script got executed. If the code fails executing, the error is printed to sys.stderr. E.g. For Python:

MAXON_METHOD String GetShutdownScript () const { return String ( "if mydebugger:\n" " mydebugger.shutdown()\n" ) }
返回
Shutdown script, including \n and 4-spaces. Can return an empty string.
maxon::VmDebuggerConnectionInterface::GetShutdownScript
MAXON_METHOD String GetShutdownScript() const
String
定义: c4d_string.h:38
MAXON_METHOD
#define MAXON_METHOD
定义: interfacebase.h:855
maxon::VmDebuggerConnectionInterface::GetStartupScript
MAXON_METHOD String GetStartupScript() const