More WIP, debugger starting correctly. Tested several commands and all working.

This commit is contained in:
Martín Lucas Golini
2024-12-28 20:31:33 -03:00
parent d07bb2572c
commit bbfcc74977
16 changed files with 349 additions and 161 deletions

View File

@@ -767,7 +767,7 @@ void ProjectBuildManager::runCurrentConfig( StatusAppOutputController* saoc, boo
}
}
bool ProjectBuildManager::hasBuildConfig() {
bool ProjectBuildManager::hasBuildConfig() const {
return !getBuilds().empty() && !mConfig.buildName.empty();
}
@@ -779,6 +779,20 @@ bool ProjectBuildManager::hasRunConfig() {
return false;
}
std::optional<ProjectBuildStep> ProjectBuildManager::getCurrentRunConfig() {
if ( hasBuildConfig() ) {
auto build = getBuild( mConfig.buildName );
if ( build != nullptr && build->hasRun() ) {
for ( const auto& crun : build->mRun ) {
if ( crun->name == mConfig.runName || mConfig.runName.empty() ) {
return build->replaceVars( *crun.get() );
}
}
}
}
return {};
}
void ProjectBuildManager::runConfig( StatusAppOutputController* saoc ) {
if ( !isRunningApp() && !getBuilds().empty() ) {
BoolScopedOp op( mRunning, true );