MCPcopy Create free account
hub / github.com/KDE/kdevelop / MIDebugJob

Method MIDebugJob

plugins/debuggercommon/midebugjobs.cpp:83–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83MIDebugJob::MIDebugJob(MIDebuggerPlugin* p, ILaunchConfiguration* launchcfg,
84 IExecutePlugin* execute, QObject* parent)
85 : MIDebugJobBase(p, parent)
86{
87 Q_ASSERT(launchcfg);
88 Q_ASSERT(execute);
89
90 initializeStartupInfo(execute, launchcfg);
91 if (!m_startupInfo) {
92 qCDebug(DEBUGGERCOMMON) << "failing debug job" << this;
93 stopDebugger();
94 // The dependency job, if any, will not be created, and an output view
95 // for this job will never be added, so do not raise any tool view.
96 return;
97 }
98
99 // This job may have a dependency builder job. If the dependency job fails, this debug job is destroyed
100 // instead of being started. Raise the Build output tool view to show build error(s) in this scenario.
101 m_session->setToolViewToRaiseAtEnd(IDebugSession::ToolView::Build);
102
103 if (launchcfg->project()) {
104 setObjectName(i18nc("ProjectName: run configuration name", "%1: %2",
105 launchcfg->project()->name(), launchcfg->name()));
106 } else {
107 setObjectName(launchcfg->name());
108 }
109}
110
111void MIDebugJob::start()
112{

Callers

nothing calls this directly

Calls 3

projectMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected