Repository navigation
Add Udon breakpoint UI - breakpoint-related operations - #2953
Conversation
# Conflicts: # core/gui/custom-webpack.config.js # core/gui/package.json # core/gui/yarn.lock
aglinxinyuan
left a comment
There was a problem hiding this comment.
A few questions regarding the UI design:
- Is it intentional that I can only set breakpoints while the workflow is running?
- If breakpoints can only be set when the workflow is running, could we hide the option when unavailable? Currently, when I attempt to set a breakpoint, it prints break: line number, but the breakpoint isn’t actually set, which is a bit confusing.
- Can we position the breakpoint icon closer to or directly on the line number? The padding between them is too large, making it difficult to find the correct spot to click.
- Should users be able to set breakpoints in multiple UDFs simultaneously? If not, we should disable the breakpoint option in the second editor.
- If multiple editors can support breakpoints, the console isn’t switching to the active editor after a breakpoint is set. For example, after setting a breakpoint in Editor 2, the console still shows the content of Editor 1. Ideally, the console should automatically switch to the current editor after it's highlighted, but the breakpoint is preventing this switch.
Yes. For this PR, we will have this assumption as debug states are stored in the backend (although some partial states are cached in the frontend as described in the PR description, the backend still has the ground truth). Later we will relax this assumption by introducing some frontend debug state life cycle.
Good suggestion, I have changed it to only enable breakpoint operations while a UDF is either running or paused to avoid confusion. Note that a special case is when the workflow is terminated, we do not change the frontend state (it will keep the old state). Thus killing a workflow will not disable breakpoint operations. In future PRs, I will introduce breakpoint operation logic during other states, which will resolve the issue.
This is controlled by the library. We could potentially alter the CSS by ourselves, but I prefer to keep it as it is and only change it if needed.
I think you mean "do we allow a single user to set breakpoints on two UDFs". Currently, I assume there is only one UDF at a time to set a breakpoint with. To relax the assumption, it is related to the operator highlighting logic. In future PRs, I can relax the assumption.
Thanks. Yes it is related to highlighting logic. Will handle it in future PRs. |
This PR adds the Udon UI for breakpoint-related operations, including setting a breakpoint, removing a breakpoint, adding a condition to a breakpoint, and hitting a breakpoint. Adding/Removing breakpoints with optional conditions.  Manually continue the execution and breakpoint hit:  ### Limitations: - It will pause the UDF upon any breakpoint-related operations. It will not automatically continue/resume the execution. - Currently, the breakpoints are only to be set during a running Python UDF operator. Submitting a new execution will remove all debugging states, including previously set breakpoints. - Some states are stored in frontend (in UDFDebugService) only. They need to be retrieved back from backend debugger.
This PR adds the Udon UI for breakpoint-related operations, including setting a breakpoint, removing a breakpoint, adding a condition to a breakpoint, and hitting a breakpoint. Adding/Removing breakpoints with optional conditions.  Manually continue the execution and breakpoint hit:  ### Limitations: - It will pause the UDF upon any breakpoint-related operations. It will not automatically continue/resume the execution. - Currently, the breakpoints are only to be set during a running Python UDF operator. Submitting a new execution will remove all debugging states, including previously set breakpoints. - Some states are stored in frontend (in UDFDebugService) only. They need to be retrieved back from backend debugger.
This PR adds the Udon UI for breakpoint-related operations, including setting a breakpoint, removing a breakpoint, adding a condition to a breakpoint, and hitting a breakpoint. Adding/Removing breakpoints with optional conditions.  Manually continue the execution and breakpoint hit:  ### Limitations: - It will pause the UDF upon any breakpoint-related operations. It will not automatically continue/resume the execution. - Currently, the breakpoints are only to be set during a running Python UDF operator. Submitting a new execution will remove all debugging states, including previously set breakpoints. - Some states are stored in frontend (in UDFDebugService) only. They need to be retrieved back from backend debugger.
…9113) ### What changes were proposed in this PR? Removes `BreakpointConditionInputComponent.left()` and `top()`, two positioning methods that nothing in production calls. **−66 lines.** There is no behaviour change. The popup is positioned by `ngOnChanges`, which computes `topPosition` and `leftPosition` for the template's `[ngStyle]="{ top: topPosition, left: leftPosition }"` binding. The template never calls `left()` or `top()`. The component's one host, `code-debugger`, binds only its inputs and output, and the two parent `ViewChild` fields that reference the component are never read. Every import is still used. The spec loses the five cases that only exercised the two methods. Its coverage of the surviving positioning (`ngOnChanges`, `topPosition`, `leftPosition`) stays. ### History | | | | --- | --- | | **Introduced by** | apache#2953 (2024-10-25), "Add Udon breakpoint UI - breakpoint-related operations", in the same commit as the `[ngStyle]` positioning that is actually used | | **Usage removed by** | **never used**. Only spec cases (apache#7304, apache#7988) ever called them | They have been unused for the two years since they were added. ### Any related issues, documentation, discussions? Closes apache#9110 ### How was this PR tested? No new tests. The surviving positioning keeps its cases. From `frontend/`: - `npx ng test --watch=false --include='**/breakpoint-condition-input.component.spec.ts' --include='**/code-debugger.component.spec.ts' --include='**/code-editor.component.spec.ts'`: 3 files, 126 tests, all pass. The last two specs cover the component's host and the code editor that declares it. - `npx tsc --noEmit -p src/tsconfig.app.json` and `-p src/tsconfig.spec.json`: clean. - `yarn format:ci`: clean. - `npx ng build`: success. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 5.5) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
…9644) ### What changes were proposed in this PR? Remove unused and inert SCSS rules, an empty component stylesheet, unread callback and lifecycle parameters, and a duplicate module import across the Angular frontend (**+13/-134 lines**). There is no observable UI or runtime behavior change. - **Detail-page SCSS selectors:** Remove unmatched `.file-title`, `.file-size`, `.versions-tab-content`, `nz-layout`, `html, body`, `.grayed-out`, `.disabled-click`, and `.ant-collapse-content-box` rules from `DatasetDetailComponent` SCSS, and unmatched `.versions-tab-content` and `nz-layout` rules from `ModelDetailComponent` SCSS. Both components use Angular's default `ViewEncapsulation.Emulated`, `apache#8942` moved the version browser markup and styles to `VersionsFilesBrowserComponent`, and zero matching elements remain in either component template. - **Unused and inert cross-component SCSS rules:** Remove unmatched `#googleButton`, `.hidden` (dashboard and hub templates use HTML `hidden` / `[hidden]` / `aria-hidden` attributes rather than a CSS class), unused Sass variable `$dashboard-navigation-height`, `.uploaded-files-list`, empty `.file-uploader-banner {}`, `.dataset-menu-bar`, `.condition-input-popup.fade-out`, and `.ai-fix-field` (zero template or TypeScript references in `frontend/src`), along with the `opacity: 1` and `transition: opacity 1s ease-in-out` declarations on `.condition-input-popup` that only existed to animate `.fade-out`. Remove emulated `.ant-table-thead > tr > th` and `.ant-table` rules in `WorkflowExecutionHistoryComponent` SCSS (default `ViewEncapsulation.Emulated` scopes them to host attributes that cannot match `nz-table` internal DOM without `::ng-deep`), remove obsolete `.ant-collapse-content-box` overrides in global `styles.scss` (`ng-zorro-antd` 21 emits `.ant-collapse-body` with zero `.ant-collapse-content-box` occurrences), and delete the empty license-only `hub.component.scss` along with its `styleUrls` entry in `HubComponent`. - **Unread subscriber callback parameters:** Drop six unread `(res: Response)` and `(err: unknown)` parameters in `DatasetDetailComponent` (`onPublicStatusChange`, `onDownloadableStatusChange`, and `onPreviouslyUploadedFileDeleted`) that were never read in their callback bodies. - **Unread lifecycle parameter and import:** Drop the unread `changes: SimpleChanges` parameter and orphaned `SimpleChanges` import in `BrowseSectionComponent.ngOnChanges`, along with two placeholder `{} as any` arguments in `browse-section.component.spec.ts`. - **Duplicate module import:** Merge the duplicate `import` from `ui-udf-parameters-parser.service` in `UiUdfParametersComponent` into the existing import block from the same module. | Event | PR / Commit | | --- | --- | | Introduced by | Detail SCSS: apache#2413 (2024-02-26), apache#2927 (2024-10-14), apache#4928 (2026-05-04), apache#7043 (2026-07-30), apache#6953 (2026-08-03), apache#8072 (2026-08-28); other SCSS and empty `hub.component.scss`: apache#1634 (2022-10-04), apache#2413 (2024-02-26), apache#2435 (2024-03-17), apache#2502 (2024-03-27), apache#2571 (2024-04-05), apache#2737 (2024-07-15), apache#2776 (2024-08-19), apache#2878 (2024-09-27), apache#2953 (2024-10-25), apache#3415 (2025-05-03), apache#4484 (2026-05-01), apache#8637 (2026-10-28); unread parameters and duplicate import: apache#2515 (2024-03-27), apache#3296 (2025-03-10), apache#3363 (2025-04-10), apache#3663 (2025-08-16), apache#6897 (2026-09-21, duplicating apache#7551 from 2026-08-13) | | Usage removed by | Detail version styles: apache#8942 (2026-10-10, `refactor(frontend): extract shared VersionsFilesBrowser component`); `.ant-collapse-content-box`: apache#5895 (2026-06-22, `chore: upgrade ng-zorro-antd to 21.3.1`); remaining selectors, empty `hub.component.scss`, unread parameters, and duplicate import: unused or inert since introduction or prior UI refactors | As of 2026-11-23, the `.ai-fix-field` rule has been unused for about 4 weeks, the orphaned detail-page version styles for 6 weeks, the duplicate import for 2 months, the obsolete `.ant-collapse-content-box` rules for 5 months, and the remaining rules and unread parameters for 15 to 49 months. ### Any related issues, documentation, discussions? Closes apache#9643. ### How was this PR tested? Ran in `frontend/` on `ff6361f2ea` (Node 24, `node .yarn/releases/yarn-4.14.1.cjs install --immutable --inline-builds`): ```bash node .yarn/releases/yarn-4.14.1.cjs format:ci node .yarn/releases/yarn-4.14.1.cjs exec tsc -p src/tsconfig.app.json --noEmit node .yarn/releases/yarn-4.14.1.cjs exec tsc -p src/tsconfig.spec.json --noEmit node .yarn/releases/yarn-4.14.1.cjs build node .yarn/releases/yarn-4.14.1.cjs test ``` - `format:ci` (`prettier-eslint --list-different` and `eslint ./src`): passed. - `tsc --noEmit` (`src/tsconfig.app.json` and `src/tsconfig.spec.json`): passed. - `build` (production Angular AOT build): passed. - `test` (Vitest, JUnit XML): `255` suites passed (`7,385` passed, `0` failed, `0` errors, `1` pre-existing skipped in untouched `operator-property-edit-frame.component.spec.ts`). Review follow-up `aacada02e9` only removes the two inert declarations on `.condition-input-popup`; it was checked locally with `prettier --check` (3.2.5) and a `sass` (1.71.1) compile of the changed stylesheet, and CI runs the full build and tests on the new head. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Antigravity (Gemini 4 Neon) Generated-by: Claude Code (Opus 5.5), review follow-up `aacada02e9` --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This PR adds the Udon UI for breakpoint-related operations, including setting a breakpoint, removing a breakpoint, adding a condition to a breakpoint, and hitting a breakpoint.
Adding/Removing breakpoints with optional conditions.

Manually continue the execution and breakpoint hit:

Limitations: