Skip to content

Feature: debug mode for live_view - #21

Merged
StackEnjoyer merged 26 commits into
mainfrom
feature/debug-mode
Oct 25, 2026
Merged

StackEnjoyer merged 26 commits into
mainfrom
feature/debug-mode

Conversation

@StackEnjoyer

@StackEnjoyer StackEnjoyer commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

Features

  • live_view(...; debug = true) and the tool "Debug": a mode that shows the hidden state of the view
  • Debug card in the 3D view: frames, solve times (solve, drawing, views, JIT, GC), rays, scene, events
  • Bounding spheres of the shapes, with the main spheres of multi-part objects and groups
  • End of each beam colored by reason, hit points with surface normals, components that no ray hits
  • Camera per saved view and the home view, like Blender; the one under the mouse shows what it frames
  • Page "Debug" on the cards: type, id, exact pose, traits, shapes, sphere, hits; for sources, rays and ends
  • open_system takes the debug mode over to the new window
gui = live_view(system, beam; debug = true)
debug-demo.mp4

Doc changes

  • New section "Debug mode" in the live view page, docstring of live_view
  • Agent skill: debug kwarg in API.md; code map in AGENTS.md

Internal changes

  • Precompile session switches the debug mode, drags, solves and opens the page "Debug"
  • Errors of tools and callbacks are recorded as events of the debug mode

Closes #32

@StackEnjoyer

Copy link
Copy Markdown
Owner Author

Refer to issue #21

Hugo Uittenbosch and others added 19 commits October 23, 2026 18:07
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s, test list

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… solve

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ts of beamlets, systems row

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he one of the info label

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@StackEnjoyer StackEnjoyer changed the title Feature: debug mode with bounding spheres, BeamletOptics 0.14 Feature: debug mode for live_view Oct 23, 2026
…gth on the screen

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov-commenter

codecov-commenter commented Oct 23, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 97.13518% with 32 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/LiveDebugRays.jl 94.88% 9 Missing ⚠️
src/LiveDebugPage.jl 95.56% 7 Missing ⚠️
src/LiveDebug.jl 97.93% 3 Missing ⚠️
src/LiveDebugHUD.jl 99.18% 2 Missing ⚠️
src/LiveDebugSpheres.jl 98.24% 2 Missing ⚠️
src/LiveLinks.jl 71.42% 2 Missing ⚠️
src/LivePick.jl 0.00% 2 Missing ⚠️
src/LiveAppTree.jl 0.00% 1 Missing ⚠️
src/LiveCardPages.jl 83.33% 1 Missing ⚠️
src/LiveMeasure.jl 0.00% 1 Missing ⚠️
... and 2 more

📢 Thoughts on this report? Let us know!

Hugo Uittenbosch and others added 2 commits October 23, 2026 22:34
…ge of the length of the final rays

The layer of the rays read the beams of a solve in the background before they were marked up to
date, and was not told when the beams are only drawn again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hugo Uittenbosch and others added 4 commits October 23, 2026 23:32
Makie records a video with OneTimeRenderTicks only, which count from 0: the card counted no frames
and, after the window had ticked, stopped refreshing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The layers learned a solve of outdated beams twice, while the beams were outdated and once they were
up to date; now only after they are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Like the cameras of Blender: the frustum with the field of view of the window (a box in the
orthographic projection), the up triangle, a dashed line to the pivot and the name. The camera
under the mouse is highlighted with the area its view frames at the pivot, its label gives eye and
pivot. The view the window looks through has no camera.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@StackEnjoyer
StackEnjoyer merged commit 5be984d into main Oct 25, 2026
3 checks passed
@StackEnjoyer
StackEnjoyer deleted the feature/debug-mode branch October 25, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: debug mode

2 participants