0% found this document useful (0 votes)
34 views11 pages

JE Debug

The document describes how to debug Java code using the Design Studio IDE. It explains that debugging tools are available in the Debug Perspective. Breakpoints can be set by double clicking the left margin of the source code editor, which will pause program execution. Shortcut keys like F5 and F7 are provided to step into or out of code. Remote debugging of a JBoss server is also configured by setting the JAVA_OPTS variable and debug launch configuration. The debug view shows threads and breakpoints can be set to inspect variable values during program execution.

Uploaded by

laks
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views11 pages

JE Debug

The document describes how to debug Java code using the Design Studio IDE. It explains that debugging tools are available in the Debug Perspective. Breakpoints can be set by double clicking the left margin of the source code editor, which will pause program execution. Shortcut keys like F5 and F7 are provided to step into or out of code. Remote debugging of a JBoss server is also configured by setting the JAVA_OPTS variable and debug launch configuration. The debug view shows threads and breakpoints can be set to inspect variable values during program execution.

Uploaded by

laks
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

1

2
3
I am going to describe how to debug the Java code

4
The Design Studio Java IDE provides many debugging tools and views grouped in
the Debug Perspective
To debug the program, define breakpoints. By adding breakpoints in the source code
we can specify where the execution of the program should pause
To set breakpoints in the source code double click on the small left margin in the
source code editor.
DS uses eclipse standard for debugging

Shortcut keys for Eclipse Debugging are,

Step In : F5
Step Over : F6
Step Out : F7
Continue : F8

5
Set the JAVA_OPTS as shown above to remote debug jBoss from Design Studio.

This JAVA_OPTS can be set in any startup file. Example: This can be added in launch-
jboss.bat file

6
Configuring debug in Design Studio

Create a new debug configuration by going to Run > Debug Configurations… or click
on the DEBUG button in the toolbar and choose DEBUG configuration. In the left side
panel, select Remote Java Application, and click on New Launch configuration in the
toolbar. This will give you a new debug configuration. On the right side, give a
meaningful name. Change the port to 8787 and the host to JBoss installation port.

Switch to the debug view with Window > Show View > Other…, type in “debug” in
the filter box and select the debug view. You should now see a JVM with a bunch of
threads.

If all went well, you can now set break points in your code and they should show up
automatically in the debugger.

7
When the VERSION is launched from the Browser, we can see the current instruction
being executed. Values of variables can be see in the Variables window and also when
the mouse hovers on the variable.

8
In this lesson we saw how to debug the Java code

9
10
11

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy