Skip to content

Support IDE breakpoints when debugging Endo archives #929

Open
@kriskowal

Description

@kriskowal

The requirements are to preserve the consistent hash of bundles, avoid accidental exposure of local debug information to production systems, and produce a good experience for IDE breakpoints in the stepping debuggers. The sourceURL of each file in an Endo archive evaluated locally must be the exact file URL on the debugging machine for this to work.

Design

We could hook bundleSource and importBundle such that the bundleSource leaves a note in a per-user database (like one stored under ~/.agoric) that maps the hash of the bundle to a file that indicates the fully qualified path for each package in the archive’s compartment map. Then, importBundle would rehydrate the sourceURL’s according to the local information for that hash.

Metadata

Metadata

Assignees

Labels

debugging supportendokriskowal-review-2024-01Issues that kriskowal wants to bring to the attention of the team for review as of January, 2024

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions