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

Method initialize

src/plugins/reversedebug/reversedebuggermgr.cpp:55–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void ReverseDebuggerMgr::initialize()
56{
57 if (!g_taskWindow) {
58 g_taskWindow = new TaskWindow;
59
60 g_taskWindow->addCategory(Constants::EVENT_CATEGORY_SYSCALL, tr("syscall"), true);
61 g_taskWindow->addCategory(Constants::EVENT_CATEGORY_SIGNAL, tr("signal"), true);
62 g_taskWindow->addCategory(Constants::EVENT_CATEGORY_X11, tr("x11"), true);
63 g_taskWindow->addCategory(Constants::EVENT_CATEGORY_DBUS, tr("dbus"), true);
64 connect(g_taskWindow, SIGNAL(coredumpChanged(int)),
65 this, SLOT(runCoredump(int)));
66 connect(g_taskWindow, SIGNAL(tasksCleared()),
67 this, SLOT(unloadMinidump()));
68 }
69
70 if (!settings) {
71 QString iniPath = CustomPaths::user(CustomPaths::Flags::Configures) + QDir::separator() + QString("reversedbg.ini");
72 bool setDefaultVaule = false;
73 if (!QFile::exists(iniPath)) {
74 setDefaultVaule = true;
75 }
76 settings = new QSettings(iniPath, QSettings::IniFormat, this);
77 if (setDefaultVaule) {
78 setConfigValue("StackSize", 32);
79 setConfigValue("HeapSize", 0);
80 setConfigValue("ParamSize", 256);
81 setConfigValue("CurrentThread", true);
82 }
83 }
84}
85
86void ReverseDebuggerMgr::recored()
87{

Callers

nothing calls this directly

Calls 3

connectFunction · 0.85
QStringClass · 0.50
addCategoryMethod · 0.45

Tested by

no test coverage detected