---
schema_version: "1"
id: 673ca7a073db2ce2a706d8c41da7e9b8eb25220c9962a2f786e576d5d1258066
title: Connect the Java Debugger in Anypoint Studio
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/studio/java-debugger-preference.md
canonical_url: https://docs.mulesoft.com/studio/java-debugger-preference
source_site: docs.mulesoft.com
content_type: documentation
content_hash: faa51e2c401144c020a27f0fed7c09c020594033571e04cd0ed60f22c7841a0e
description: MuleSoft Documentation Site
latest: true
---
---
product: Studio
---

# Connect the Java Debugger in Anypoint Studio

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Studio disconnects the Java debugger by default. Connect it in the Studio preferences if you need to
debug Java code in your Mule project.

1.  Open the preferences view in the manner appropriate to your OS:

    - In macOS, either navigate to **Anypoint Studio** > **Preferences…​** or press `cmd + ,`.

    - In Windows and Linux, navigate to **Window** > **Preferences…​**.

2.  Expand **Anypoint Studio** in the left navigation bar, and select **Debugger**,

3.  Select **Connect Java Debugger**.

    ![A window displaying preferences for the Java debugger](/mulesoft/current/en-us/studio/_images/connect-java-debugger.png)

4.  Select **Apply and Close**.

Note that connecting the Java debugger in Studio can cause performance degradation in your
subsequent redeployments.
