# \[Tutorial\] Debug your platform plugin using Eclipse IDE

**URL:** <https://forum.katalon.com/t/tutorial-debug-your-platform-plugin-using-eclipse-ide/23500>\
**Category:** Integrations\
**Tags:** plugins, katalon-studio\
**Created:** [April 19, 2019, 9:06am UTC](https://forum.katalon.com/t/tutorial-debug-your-platform-plugin-using-eclipse-ide/23500 "2019-04-19T09:06:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![duyluong](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/duyluong/32/1116_2.png) [@duyluong](https://forum.katalon.com/u/duyluong)\
**Post date:** [April 19, 2019, 9:06am UTC](https://forum.katalon.com/t/tutorial-debug-your-platform-plugin-using-eclipse-ide/23500/1 "2019-04-19T09:06:03Z")

</div>

## Debug your platform plugin using Eclipse IDE

As the previous [tutorial](http://forum.katalon.com/t/tutorial-create-your-first-katalon-studio-plugin/18088), we have announced how to create platform plugins for Katalon Studio.

This tutorial will illustrate how to debug a platform plugin using Eclipse IDE via [Java Remote Debugging](https://help.eclipse.org/2019-03/topic/org.eclipse.jdt.doc.user/tasks/task-running_and_debugging.htm) feature.

#### Prerequisites:

1. Java SDK 1.8

2. Maven 3.3+

3. Katalon Studio v6.1.0 or later

4. Eclipse IDE (We used Eclipse 4.11 in this article)

### Step 1: Start Katalon Studio with remote debugger mode

Start katalon via commandline using this command:

```sh

<katalon_installed_folder>/katalon -vmargs -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000

```

The `<katalon_installed_folder>` is the absolute path to Katalon installed folder.

_If you are using macOS, the `<katalon_installed_folder>` should be `/Applications/Katalon Studio.app/Contents/MacOS`._

The `address=8000` is a local port number, JVM will allow a debugger to attach to Katalon Studio via this port. You can change to another port if needed.

### Step 2: Import your platform plugin to Eclipse IDE as a Maven project

In this example, we will use the last tutorial project: [katalon-studio-sample-plugin](https://github.com/katalon-studio/katalon-studio-sample-plugin) to debug.

 ![import_plugin_project_to_eclipse_ide](https://dub1.discourse-cdn.com/katalon/uploads/default/original/2X/e/e01711aa904d42f8b4f31904b84beff6e1392012.png)

### Step 3: Set a breakpoint

Open a Java file and set a breakpoint in the code. In this example, we set the breakpoint in the line of class [MyPluginActivationListener](https://github.com/katalon-studio/katalon-studio-sample-plugin/blob/master/src/main/java/com/mycompany/plugin/MyPluginActivationListener.java):

```java

System.out.println("Hello, my plugin is: " + plugin.getPluginId());

```

 ![set_breakpoint](https://dub1.discourse-cdn.com/katalon/uploads/default/original/2X/5/504ea30ef00e9331abea070c46abeec7bec36bf2.png)

### Step 4: Create a Java Remote Application Debugger

Click on the arrow dropdown of Eclipse debug icon ![debug](https://dub1.discourse-cdn.com/katalon/uploads/default/original/2X/3/37ad1d7dcb8ffbd1978844aa676f5044e63a13aa.png), choose `Debug Configuration` item.

 ![debug_configuration](https://dub1.discourse-cdn.com/katalon/uploads/default/original/2X/e/e340eddfeb9358f61beaeb31c14e81d68a5ac208.png)

Right-click on the `Java Remote Application` and choose `New Configuration` to add new Remote Debugger

 ![new_configuration](https://dub1.discourse-cdn.com/katalon/uploads/default/original/2X/f/fc5ab64ba965fcb10382f7c5d8f669374d1ea204.jpeg)

### Step 5: Configure the Java Remote Application Debugger

`Browse` to your platform plugin project at the text field under `Project` section.

Enter the port number you declared at step 1 to the `Port:` text field under `Connection Properties` section.

Click `Debug` to finish setup.

 ![new_remote_debugger](https://dub1.discourse-cdn.com/katalon/uploads/default/original/2X/f/f8707b18e942d696d8e8781131fd841865c0a390.png)

If your setup is correct, there is a ![disconect](https://dub1.discourse-cdn.com/katalon/uploads/default/original/2X/2/25aeb197ea0855b0f79e2bdde4973d73199ec1cd.gif) icon will show on Eclipse toolbar.

### Step 6: Import plugin to Katalon Studio and start debugging

Import your plugin and do your expected actions to make the breakpoint you placed at step 2 will be hit.

In this sample, the breakpoint will hit immediately after the plugin succesfiully installed.

 ![break_point_hit](https://dub1.discourse-cdn.com/katalon/uploads/default/original/2X/5/5904a902090904d02535af762ae5fdb969b1ab7b.png)

Great, you now can debug your platform plugin project as a normal Java project.

### Step 7: Disconnect and stop debugging

Press the ![disconect](https://dub1.discourse-cdn.com/katalon/uploads/default/original/2X/2/25aeb197ea0855b0f79e2bdde4973d73199ec1cd.gif) icon to disconnect and stop your debugging session.

---

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [August 8, 2022, 7:01am UTC](https://forum.katalon.com/t/tutorial-debug-your-platform-plugin-using-eclipse-ide/23500/2 "2022-08-08T07:01:50Z")

</div>

Archived on August 8, 2022, 7:01am UTC


