-
首页
-
C4D R23.110 C++ SDK
VmDebuggerConnectionInterface Class Reference
#include <vm.h>
成员函数文档编制
◆
MAXON_INTERFACE()
◆
GetName()
Returns the name of the debugger connection.
-
返回
-
Name, e.g. PyDev
◆
GetPath()
Returns the path of the debugger.
-
返回
-
Path to the debugger, allowed to be empty.
◆
GetStartupScript()
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()
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_METHOD String GetShutdownScript() const
#define MAXON_METHOD
定义:
interfacebase.h:855
MAXON_METHOD String GetStartupScript() const