2020-02-14 15:49:12 +01:00
|
|
|
// Module included in the following assemblies:
|
|
|
|
|
//
|
2020-10-21 13:01:57 +02:00
|
|
|
// * cli_reference/creating_and_deploying_applications_with_odo/debugging-applications-in-odo.adoc
|
2020-02-14 15:49:12 +01:00
|
|
|
|
2023-10-30 10:13:25 -04:00
|
|
|
:_mod-docs-content-type: PROCEDURE
|
2020-02-14 15:49:12 +01:00
|
|
|
[id="configuring-debugging-parameters_{context}"]
|
|
|
|
|
|
|
|
|
|
= Configuring debugging parameters
|
|
|
|
|
|
|
|
|
|
You can specify a remote port with `odo config` command and a local port with the `odo debug` command.
|
|
|
|
|
|
|
|
|
|
.Procedure
|
|
|
|
|
|
|
|
|
|
* To set a remote port on which the debugging agent should run, run:
|
|
|
|
|
+
|
2020-08-05 13:52:43 -04:00
|
|
|
[source,terminal]
|
2020-02-14 15:49:12 +01:00
|
|
|
----
|
|
|
|
|
$ odo config set DebugPort 9292
|
|
|
|
|
----
|
|
|
|
|
+
|
|
|
|
|
[NOTE]
|
|
|
|
|
====
|
|
|
|
|
You must redeploy your component for this value to be reflected on the component.
|
|
|
|
|
====
|
|
|
|
|
|
|
|
|
|
* To set a local port to port forward, run:
|
|
|
|
|
+
|
2020-08-05 13:52:43 -04:00
|
|
|
[source,terminal]
|
2020-02-14 15:49:12 +01:00
|
|
|
----
|
|
|
|
|
$ odo debug port-forward --local-port 9292
|
|
|
|
|
----
|
|
|
|
|
+
|
|
|
|
|
[NOTE]
|
|
|
|
|
====
|
|
|
|
|
The local port value does not persist. You must provide it every time you need to change the port.
|
2020-08-05 13:52:43 -04:00
|
|
|
====
|