Skip to content

Commit

Permalink
Add JDWP remote debugger tool usage to dev section of docs. #101
Browse files Browse the repository at this point in the history
  • Loading branch information
poikilotherm committed Jan 20, 2020
1 parent f7f9e65 commit 80a7219
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
Binary file added docs/development/img/jdwp-idea-breakpoint.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/development/img/jdwp-idea-config.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/development/img/jdwp-idea-connect.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/development/img/jdwp-idea-port.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions docs/development/javatools.rst
Expand Up @@ -22,6 +22,45 @@ Metrics and Performance with VisualVM
Debugging with JDWP
^^^^^^^^^^^^^^^^^^^

On startup, when the environment variable ``ENABLE_JDWP=1``, the application
server is configured to list on port ``${JDWP_PORT}`` defaulting to 9009.

You might set this variables in any way you like. On Kubernetes, the easiest way
is likely to be via the Dataverse ``ConfigMap`` (see also :doc:`/day1/config`):

.. code-block:: yaml
# [...]
data:
ENABLE_JDWP: "1"
JDWP_PORT: "9009"
You will need to port-forward this to your host. Example:

.. code-block:: shell
kubectl port-forward deployment/dataverse 9009
Then configure your IDE to connect to the remote debugger. Below is an example
for IntelliJ IDEA:

.. thumbnail:: img/jdwp-idea-port.png
:group: jdwp
:title: Port forwarding with kubectl
:width: 24%
.. thumbnail:: img/jdwp-idea-config.png
:group: jdwp
:title: Remote debugger configuration in IntelliJ IDEA
:width: 24%
.. thumbnail:: img/jdwp-idea-connect.png
:group: jdwp
:title: Remote debugger in IntelliJ IDEA connected
:width: 24%
.. thumbnail:: img/jdwp-idea-breakpoint.png
:group: jdwp
:title: Remote debugger at work
:width: 24%



Hot-Reploy of evolving parts with JRebel
Expand Down

0 comments on commit 80a7219

Please sign in to comment.