Skip to content

Commit

Permalink
fix debugger not showing where error log occured
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Nov 10, 2024
1 parent 0c49f97 commit b5bfb5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/project-editor/flow/runtime-viewer/viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ export const Canvas = observer(
}

const lvglCreateInProgress =
!runtime.isStopped &&
this.props.flowContext.flowState &&
this.props.flowContext.flowState.flow instanceof
ProjectEditor.PageClass &&
Expand Down
5 changes: 3 additions & 2 deletions packages/project-editor/flow/runtime/remote-runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1371,10 +1371,11 @@ export abstract class DebuggerConnectionBase {
runtime.error = errorMessage;
});

runtime.stopRuntime(true);

const { flowIndex, flowState } =
this.getFlowState(flowStateIndex);

runtime.stopRuntime(true);

if (!flowState) {
console.error("UNEXPECTED!");
return;
Expand Down

0 comments on commit b5bfb5e

Please sign in to comment.