You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be amazing to have a way to add "breakpoints" to the DAG, and interactively inspect the state at the given point (via an interactive shell for example).
This has been requested and proposed many times, and we even saw a proof-of-concept by @aluzzardi :) This issue is for tracking and lobbying purposes 😄
Reacted by Solomon Hykes, Kyle Penfound, Joe Kralicky, Jffarge, Miranda Carter, Steven Tobias, Christian, Helder Correia, Ali AKCA, Janusz Dziurzyński and 10 more
+1 for this feature. In my experience this would be extrem helpful to debug problems "beyond" the SDKs. I found myself often in the situation when I wish I have the option to inspect the file system after a new directory mount or command execution.
Reacted by Andres Manjarres, Alejandro Bernal and Sgilgen
what is the easiest (shortest? 😁) way from a failed step in a pipeline, to debugging it interactively in the same environment, so you could run commands/inspect filesystem and such? — basically, mimicking targets in a dockerfile, and being able to exec into the failed container state? — preferably using go sdk — but any pointers appreciated, i’ve been mucking with nsenter from the buildkit host — but hoping for something along the lines of earthly -i if possible 😄
This would also be useful in a non-debugging step, where I may want to create ephemeral, dagger powered environments. In other words, the end of a pipeline can be an interactive session, or maybe an intermediate stage where the user has to do something, and when they are done, the pipeline continues.
This would be a great feature for some use cases we deal with. Specifically we have builds that we do seldomly that take hours each time. If these fail in a container the current best that we can do is experience the failure, start a new interactive container instance on the previous image, and run the command again and wait for another several hours until it fails again so we can debug interactively.
Another separate cool use case is if you could look at diffs between images interactively or iteratively/interactively walk the image history to consider all versions of a file in all the images produced by a pipeline for debugging.
Coming from a Concourse background, where fly intercept (gives you an interactive shell in a running or failed container) is one of the commands most praised by developers: YES PLEASE.
Yes, the with breakpoint idea came to me after having to continually edit functions to return a container and commenting out code to debug.
withBreakpoint() could be a function that is a noop most of the time, except when we enable them with Dagger call. It would simplify getting into a terminal without juggling our code.
Activity
schlapzz commentedon Mar 10, 2023
+1 for this feature. In my experience this would be extrem helpful to debug problems "beyond" the SDKs. I found myself often in the situation when I wish I have the option to inspect the file system after a new directory mount or command execution.
jpadams commentedon Jun 2, 2023
From user in Discord:
https://discord.com/channels/707636530424053791/708371226174685314/1114265034009346108
jpadams commentedon Jun 2, 2023
From Ali in Discord:

https://discord.com/channels/707636530424053791/1105819412281442375/1105819682524635189
jpadams commentedon Jun 2, 2023
From discord:
https://discord.com/channels/707636530424053791/708371226174685314/1071139783037952010
jpadams commentedon Jun 2, 2023
From discord:

https://discord.com/channels/707636530424053791/708371226174685314/1091828358695878776
schlapzz commentedon Jun 4, 2023
I think a good starting point would be to implement the
--invoke=on-errorfrom Buildkit.This would help at least to debug failing builds.
docker/buildx#1640
jpadams commentedon Jun 8, 2023
From discord:

https://discord.com/channels/707636530424053791/1113441002678648945/1113441002678648945
verdverm commentedon Jun 30, 2023
This would also be useful in a non-debugging step, where I may want to create ephemeral, dagger powered environments. In other words, the end of a pipeline can be an interactive session, or maybe an intermediate stage where the user has to do something, and when they are done, the pipeline continues.
helderco commentedon Jul 29, 2023
From Discord:
robertu94 commentedon Oct 27, 2023
This would be a great feature for some use cases we deal with. Specifically we have builds that we do seldomly that take hours each time. If these fail in a container the current best that we can do is experience the failure, start a new interactive container instance on the previous image, and run the command again and wait for another several hours until it fails again so we can debug interactively.
robertu94 commentedon Oct 27, 2023
Another separate cool use case is if you could look at diffs between images interactively or iteratively/interactively walk the image history to consider all versions of a file in all the images produced by a pipeline for debugging.
suhlig commentedon Nov 4, 2023
Coming from a Concourse background, where
fly intercept(gives you an interactive shell in a running or failed container) is one of the commands most praised by developers: YES PLEASE.rawkode commentedon Sep 13, 2024
Just came to open an issue for a
withBreapoint()method on a Container.Yes, please!
shykes commentedon Sep 14, 2024
@rawkode have you tried
Container.terminal()?rawkode commentedon Sep 14, 2024
Yes, the with breakpoint idea came to me after having to continually edit functions to return a container and commenting out code to debug.
withBreakpoint() could be a function that is a noop most of the time, except when we enable them with Dagger call. It would simplify getting into a terminal without juggling our code.
rawkode commentedon Sep 14, 2024
Oh, wait. Are you saying I can add .terminal to my code and it works? No more commenting 😮
shykes commentedon Sep 14, 2024
yes :) @aluzzardi was also tired of having to do what you described, and took matters in his own hands 💪
shykes commentedon Sep 14, 2024
@rawkode bonus you can also do
Directory.terminal()rawkode commentedon Sep 14, 2024
Y'all are too good to us.
Love it!