diff --git a/src/project.cpp b/src/project.cpp index edf0d4b..ed780fd 100644 --- a/src/project.cpp +++ b/src/project.cpp @@ -279,7 +279,7 @@ void Project::Base::debug_start(const std::string &command, const boost::filesys std::pair Project::LLDB::debug_get_run_arguments() { auto debug_build_path = build->get_debug_path(); auto default_build_path = build->get_default_path(); - if(debug_build_path.empty() || default_build_path.empty()) + if(debug_build_path.empty() || default_build_path.empty() || !build->update_default()) return {"", ""}; auto project_path = build->project_path.string(); @@ -687,7 +687,7 @@ void Project::LLDB::debug_write(const std::string &buffer) { std::pair Project::Clang::get_run_arguments() { auto build_path = build->get_default_path(); - if(build_path.empty()) + if(build_path.empty() || !build->update_default()) return {"", ""}; auto project_path = build->project_path.string();