Open
Description
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.