New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debugging: adding a script and instructions for debugging the GO shim #9585
Conversation
@gkurz - FYI Still WIP as I need to provide instructions for containerd, but comments are welcome at this point :-) |
cf43bae
to
19fe74e
Compare
Updated instructions. Now ready for review. |
docs/Developer-Guide.md
Outdated
``` | ||
|
||
Note that we are providing a regular expression to filter the name of the binary. | ||
This is to make sure that the deubgger attaches to the runtime shim, and not |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/deubgger/debugger
19fe74e
to
d086484
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @littlejawa this is really welcome. Thanks!
My only suggestion is to move it to its own file, something like DEBUG-GOSHIM.md and make reference to it in the Developer Guide. Otherwise the guide it will be really extensive.
I like the idea as @littlejawa can you do that please ? |
Sure. I actually hesitated when doing it, so I'm fine with it. |
d086484
to
ab37674
Compare
a43501d
to
0e157c7
Compare
Using a debugger with the kata runtime is complicated, but it can be done and can be very useful. This commits provides a helper script that simplifies it, and updates the developper's documentation to explain how to use it. Signed-off-by: Julien Ropé <jrope@redhat.com>
0e157c7
to
e7cfc08
Compare
Ok... Spell check is happy now :) |
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @littlejawa !
This PR provides some developer's documentation and a helper script that makes it easier to use a debugger on the go shim.
NOTE: This PR doesn't address runtime-rs, it will come with a future commit.
Now the script provided here will probably be useful for runtime-rs too, as most of it is related to the shim's behavior, dictated by the shimv2 interface.
My expectation at this point is that the same script should be usable for both shims.