0% found this document useful (0 votes)
12 views6 pages

Java Debugging in Eclipse Guide

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)
12 views6 pages

Java Debugging in Eclipse Guide

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

Page 1 of 6

Home Whiteboard Online Compilers Practice Articles AI Assistant

SQL HTML CSS Javascript Python Java C C++ PHP Scala C#

Eclipse - Debugging Program


MilesWeb
SEE MORE
Work Smarter, Together

Debugging a Java Program


The quickest way to debug a Java program is to using the Package Explorer view. In the
Package Explorer view −

Right click on the java class that contains the main method.

Select Debug As → Java Application.

The same action can be performed using the Package Explorer by selecting the class that
contains the main method and clicking Alt + Shift + D, J.

Either actions mentioned above create a new Debug Configuration and use it to start the
Java application.

If a Debug configuration has already been created you can use it to start the Java
application by selecting Debug Configurations from the Run menu, clicking on the name
of the debug configuration and then clicking on the Debug button.

[Link] 1/6
Page 2 of 6

The Debug menu item on the Run menu can be used to restart the java application that
was previously started in the debug mode.

The shortcut key to launch the previously launched Java application in the debug mode is
F11. When a java program is started in the debug mode, users are prompted to switch to
the debug perspective. The debug perspective offers additional views that can be used to
troubleshoot an application.

The java editor allows users to place break points in the java code. To set a break point,
in the editor area right click on the marker bar and select Toggle Breakpoint.

Chapters Categories

[Link] 2/6
Page 3 of 6

Breakpoints are shown on the marker bar. They are also visible in the Breakpoints View.

When the execution of code reaches a break point the JVM suspends the execution of the
program. At this point, you can inspect the memory and execute the program in a
controlled manner.

When the execution of a program is paused, the debug view can be used to inspect the
call stack.

[Link] 3/6
Page 4 of 6

The variables view can be used to inspect the value of variables.

The run menu has menu items that allow you to Resume execution, step over a line of
code, step into a function etc.

The picture given above shows the shortcut keys associated with actions such as
Resume, Step Into and Step Over, etc.

TOP TUTORIALS

Python Tutorial

Java Tutorial
C++ Tutorial

C Programming Tutorial

C# Tutorial
PHP Tutorial

R Tutorial

[Link] 4/6
Page 5 of 6

HTML Tutorial

CSS Tutorial

JavaScript Tutorial
SQL Tutorial

TRENDING TECHNOLOGIES

Cloud Computing Tutorial

Amazon Web Services Tutorial

Microsoft Azure Tutorial


Git Tutorial

Ethical Hacking Tutorial

Docker Tutorial
Kubernetes Tutorial

DSA Tutorial

Spring Boot Tutorial


SDLC Tutorial

Unix Tutorial

CERTIFICATIONS

Business Analytics Certification

Java & Spring Boot Advanced Certification

Data Science Advanced Certification


Cloud Computing And DevOps

Advanced Certification In Business Analytics

Artificial Intelligence And Machine Learning


DevOps Certification

Game Development Certification

Front-End Developer Certification


AWS Certification Training

Python Programming Certification

COMPILERS & EDITORS

Online Java Compiler

Online Python Compiler


Online Go Compiler

Online C Compiler

[Link] 5/6
Page 6 of 6

Online C++ Compiler

Online C# Compiler

Online PHP Compiler


Online MATLAB Compiler

Online Bash Terminal

Online SQL Compiler


Online Html Editor

ABOUT US | OUR TEAM | CAREERS | JOBS | CONTACT US | TERMS OF USE |

PRIVACY POLICY | REFUND POLICY | COOKIES POLICY | FAQ'S

Tutorials Point is a leading Ed Tech company striving to provide the best learning material on
technical and non-technical subjects.

© Copyright 2025. All Rights Reserved.

[Link] 6/6

You might also like