-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Update odo debugging. #28419
Update odo debugging. #28419
Conversation
The preview will be available shortly at:
|
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.
I have a few updates and suggestions.
@@ -10,11 +10,83 @@ You can debug your application on in `odo` with the `odo debug` command. | |||
|
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.
Can you fix the typo above this line? "You can debug your application on in..."
@@ -10,11 +10,83 @@ You can debug your application on in `odo` with the `odo debug` command. | |||
|
|||
.Procedure | |||
|
|||
. After an application is deployed, start the port forwarding for your component to debug the application: | |||
. Download the sample application which contains the necessary `debugrun` step within its devfile: |
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/which/that
ISG:
- Use that, without a comma, to introduce a restrictive clause.
- Use which, preceded by a comma, to introduce a nonrestrictive clause.
---- | ||
$ odo create nodejs --starter | ||
---- | ||
+ |
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.
Especially without any introductory text, these output examples should have a title (.Example output
):
In addition, prepend the code block for the output with the title .Example output to make it consistently clear across the docs when this is being represented. A lead-in sentence explaining the example output is optional.
See here for details.
Please use `odo push` command to create the component with source deployed | ||
---- | ||
|
||
. Push the application with the `--debug` flag which is required for all debugging deployments: |
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/flag which/flag, which
✓ Changes successfully pushed to component | ||
---- | ||
+ | ||
NOTE: You can specify a custom debug command by using the `--debug-command="custom-step"` flag. |
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.
In the preview build I generated, the NOTE
admonitions look fine, but our guidelines are to format as such:
[IMPORTANT]
====
lorem ipsum
====
So it might be worth an update to these instances.
|
||
. Attach the debugger bundled in your IDE to the component. Instructions vary depending on your IDE. | ||
. Attach the debugger bundled in your IDE of choice. Instructions vary depending on your IDE, for example link:https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_remote-debugging[VSCode debugging interface]. |
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.
For clarity:
- s/debugger bundled/debugger that is bundled
- s/for example/for example:
The preview build didn't work because it was a single module, so it would be good to include a local build hosted on an internal server. I built one locally to check in this case. |
Feedback.
@bobfuru thank you for the review! I've addressed all of the issues. |
Interesting, the link you shared here works for me as well. I should have tried the "back to our site" link before. 😁 I thought we had a limitation with netlify that it wouldn't allow preview builds for single-file modules because they lived outside the context of an assembly. But that seems to not quite be the case ¯_(ツ)_/¯ @vikram-redhat WDYT? Changes all LGTM, thanks for the updates. I'll merge/CP to 4.6, 4.7. |
/cherrypick enterprise-4.6 |
/cherrypick enterprise-4.7 |
@bobfuru: new pull request created: #28726 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@bobfuru: new pull request created: #28727 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Branch 4.6 and 4.7