Support debug components. (#3994)

### What problem does this PR solve?

#3993

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu
2024-12-11 19:23:59 +08:00
committed by GitHub
parent f61c276f74
commit 6d19294ddc
8 changed files with 63 additions and 15 deletions

View File

@ -211,6 +211,7 @@ class Canvas(ABC):
except Exception as e:
logging.exception(f"Canvas.run got exception: {e}")
self.path[-1].append(c)
ran += 1
raise e
self.path[-1].append(c)
ran += 1
@ -330,4 +331,4 @@ class Canvas(ABC):
return self.components["begin"]["obj"]._param.query
def get_component_input_elements(self, cpnnm):
return self.components["begin"]["obj"].get_input_elements()
return self.components[cpnnm]["obj"].get_input_elements()