Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add
--cache-reuse
option which allows sharing the build cache among invocation ofbuildg debug
to make the 2nd-time debugging faster. This is useful to speed up runningbuildg
multiple times for debugging an errored step.Note that breakpoints on cached steps are ignored as of now. Because of this limitation, this feature is optional as of now. We should fix this limitation and make it the default behaviour in the future.
The build data is stored to the default common location (e.g. "/var/lib/buildg/data"). To prune the cache, user can manually remove that directory.
example
Here we debug a failed step at line 4 (
RUN echo fail > /
).1st time invocation computes all steps and caches the result at a common location.
2nd time invocation can reuse the cache and we can quickly debug the errored step (line 4:
RUN echo fail > /
) multiple times.All breakpoints on the cached steps are ignored and the debug session starts from line 4.