MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / init

Method init

src/tools/debugadapter/debugger/gdbmi/gdbdebugger.cpp:68–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void GDBDebugger::init()
69{
70 //use to debugging adapter
71// DebugManager::instance()->command("set logging file /tmp/log.txt");
72// DebugManager::instance()->command("set logging on");
73
74 QString prettyPrintersPath = CustomPaths::CustomPaths::global(CustomPaths::Scripts) + "/prettyprinters";
75 DebugManager::instance()->command(QString("python sys.path.insert(0, \"%1\")").arg(prettyPrintersPath));
76
77 DebugManager::instance()->command("python from qt import register_qt_printers");
78 DebugManager::instance()->command("python register_qt_printers(None)");
79
80 DebugManager::instance()->command("set print sevenbit-strings off");
81 DebugManager::instance()->command("set breakpoint pending on");
82 DebugManager::instance()->command("-enable-pretty-printing");
83
84 DebugManager::instance()->command("set width 0");
85 DebugManager::instance()->command("set height 0");
86}
87
88QString GDBDebugger::program()
89{

Callers 1

executeMethod · 0.45

Calls 2

QStringClass · 0.50
commandMethod · 0.45

Tested by

no test coverage detected