Skip to content

Add unit tests for Udon Python UDF debugger #4509

Closed

Description

@Yicong-Huang

Task Summary

The Python-side runtime of the Udon UDF debugger has zero unit-test coverage:

  • core/architecture/managers/debug_manager.py — wraps pdb.Pdb with SingleBlockingIO pipes
  • core/architecture/handlers/control/debug_command_handler.py — RPC handler that translates frontend debug commands and forwards them to the debugger

Peer managers in the same directory (pause_manager, state_manager, executor_manager) all have test_*.py files; debug_manager is the odd one out.

The frontend covers the UI layer (udf-debug.service.spec.ts, code-debugger.component.spec.ts), but the actual pdb wiring on the worker side is untested.

Proposed Action

Add test_debug_manager.py and test_debug_command_handler.py next to the production files, following the existing pytest pattern used by test_pause_manager.py etc. Cover at minimum:

  • DebugManager: command put/has roundtrip, event has/get, blocking read returns flushed line, prompt is empty.
  • WorkerDebugCommandHandler.translate_debug_command: b/break prepends module name to lineno arg, other commands pass through, condition arg is preserved, whitespace is normalized.

Priority

P3 – Low (test-coverage gap)

Task Type

  • Testing / QA

Activity

  1. added a commit that references this issue on Apr 26, 2026
    b2f178d
  2. self-assigned this
    on Apr 26, 2026
  3. changed the title [-]test(amber-python): add unit tests for Udon Python UDF debugger[/-] [+]Add unit tests for Udon Python UDF debugger[/+] on Apr 26, 2026
  4. added 2 commits that reference this issue on Jun 22, 2026
    ee91643
    4029449
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions