-
Notifications
You must be signed in to change notification settings - Fork 243
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 debug --help screen #3963
Update odo debug --help screen #3963
Conversation
pkg/odo/cli/debug/portforward.go
Outdated
Forward a local port to a remote port on the pod where the application is listening for a debugger. | ||
|
||
By default the local port and the remote port will be same. To change the local port you can use --local-port argument and to change the remote port use "odo config set DebugPort <port>" | ||
portforwardLong = templates.LongDesc(`Forward a local port to a remote port on the pod where the application is listening for a debugger. By default the local port and the remote port will be same. To change the local port you can use --local-port argument and to change the remote port use "odo config set DebugPort <port>" |
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 devfile components, config set
doesn't work.
[mrinaldas@localhost project]$ odo config set DebugPort 5858
✗ unknown parameter :'debugport' is not a configurable parameter in the devfile
It has been changed to env set
for devfile components.
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.
Thanks! Updated.
**What type of PR is this?** /kind cleanup **What does does this PR do / why we need it**: Updates the debug output of `odo debug --help` to the following: ```sh github.com/openshift/odo debugging-docs-update ✔ 53m ▶ ./odo debug --help Debug allows you to remotely debug your application. Usage: odo debug [flags] odo debug [command] Aliases: debug, d Examples: # Listen on default port and forwarding to the default port in the pod odo debug port-forward # Listen on the 5000 port locally, forwarding to default port in the pod odo debug port-forward --local-port 5000 # Get information regarding any debug session of the component odo debug info Available Commands: info Displays debug info of a component port-forward Forward one or more local ports to a pod Flags: -h, --help Help for debug Additional Flags: -v, --v Level Number for the log level verbosity. Level varies from 0 to 9 (default 0). --vmodule moduleSpec Comma-separated list of pattern=N settings for file-filtered logging Use "odo debug [command] --help" for more information about a command. ``` **Which issue(s) this PR fixes**: Fixes #? **PR acceptance criteria**: - [ ] Unit test - [ ] Integration test - [ ] Documentation - [ ] I have read the [test guidelines](https://github.com/openshift/odo/blob/master/docs/dev/test-architecture.adoc) **How to test changes / Special notes to the reviewer**:
46f8efa
to
b554f1a
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: girishramnani The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
/retest Please review the full test history for this PR and help us cut down flakes. |
7 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
Codecov Report
@@ Coverage Diff @@
## master #3963 +/- ##
==========================================
- Coverage 44.82% 44.55% -0.27%
==========================================
Files 143 143
Lines 13906 13979 +73
==========================================
- Hits 6234 6229 -5
- Misses 7082 7158 +76
- Partials 590 592 +2
Continue to review full report at Codecov.
|
What type of PR is this?
/kind cleanup
What does does this PR do / why we need it:
Updates the debug output of
odo debug --help
to the following:Which issue(s) this PR fixes:
Closes #3871
PR acceptance criteria:
Unit test
Integration test
Documentation
I have read the test guidelines
How to test changes / Special notes to the reviewer: