add more (commented-out) debug statements

Also print generator symbol for completeness.
This commit is contained in:
v4hn 2021-03-17 10:13:29 +01:00
parent e33962364d
commit be1c8292b5
2 changed files with 7 additions and 2 deletions

View File

@ -295,9 +295,9 @@ static void printChildrenInterfaces(const ContainerBase& container, bool success
for (const auto& child : container.pimpl()->children()) { for (const auto& child : container.pimpl()->children()) {
auto cimpl = child->pimpl(); auto cimpl = child->pimpl();
if (!cimpl->starts() && !cimpl->ends())
continue; // skip generator
os << std::setw(width) << std::left << child->name(); os << std::setw(width) << std::left << child->name();
if (!cimpl->starts() && !cimpl->ends())
os << "" << std::endl;
if (cimpl->starts()) if (cimpl->starts())
os << "" << *child->pimpl()->starts() << std::endl; os << "" << *child->pimpl()->starts() << std::endl;
if (cimpl->starts() && cimpl->ends()) if (cimpl->starts() && cimpl->ends())
@ -399,6 +399,7 @@ void SerialContainer::onNewSolution(const SolutionBase& current) {
} }
} }
} }
// printChildrenInterfaces(*this, true, *current.creator());
// finally, store + announce new solutions to external interface // finally, store + announce new solutions to external interface
for (const auto& solution : sorted) for (const auto& solution : sorted)
@ -429,6 +430,7 @@ void SerialContainer::onNewFailure(const Stage& child, const InterfaceState* fro
} }
break; break;
} }
// printChildrenInterfaces(*this, false, child);
} }
SerialContainer::SerialContainer(SerialContainerPrivate* impl) : ContainerBase(impl) {} SerialContainer::SerialContainer(SerialContainerPrivate* impl) : ContainerBase(impl) {}

View File

@ -761,6 +761,9 @@ void ConnectingPrivate::newState(Interface::iterator it, bool updated) {
} }
} }
} }
// std::cerr << name_ << ": ";
// printPendingPairs(std::cerr);
// std::cerr << std::endl;
} }
// Check whether there are pending feasible states that could connect to source. // Check whether there are pending feasible states that could connect to source.