From 41bead3e50f93f12b4ab735cf064933bed7700f6 Mon Sep 17 00:00:00 2001 From: eidheim Date: Fri, 21 Aug 2020 07:50:10 +0200 Subject: [PATCH] In order to find executable, create default build if missing, prior to creating debug build --- src/project.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/project.cpp b/src/project.cpp index c4e7184..b4c698f 100644 --- a/src/project.cpp +++ b/src/project.cpp @@ -344,9 +344,11 @@ Project::DebugOptions *Project::LLDB::debug_get_options() { } void Project::LLDB::debug_start() { - auto debug_build_path = build->get_debug_path(); auto default_build_path = build->get_default_path(); - if(debug_build_path.empty() || !build->update_debug() || default_build_path.empty()) + if(default_build_path.empty() || !build->update_default()) + return; + auto debug_build_path = build->get_debug_path(); + if(debug_build_path.empty() || !build->update_debug()) return; auto project_path = std::make_shared(build->project_path);