Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public final class DebugSettings {
public boolean showStaticVariables = true;
public boolean showQualifiedNames = false;
public boolean showHex = false;
public boolean enableHotCodeReplace = false;
public String logLevel;

public static DebugSettings getCurrent() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@

import com.microsoft.java.debug.core.Configuration;
import com.microsoft.java.debug.core.DebugException;
import com.microsoft.java.debug.core.DebugSettings;
import com.microsoft.java.debug.core.DebugUtility;
import com.microsoft.java.debug.core.IDebugSession;
import com.microsoft.java.debug.core.StackFrameUtility;
Expand Down Expand Up @@ -289,8 +290,10 @@ public HotCodeReplaceEvent(EventType eventType, String message) {

@Override
public void initialize(IDebugAdapterContext context, Map<String, Object> options) {
// Listen to the built file events.
ResourcesPlugin.getWorkspace().addResourceChangeListener(this, IResourceChangeEvent.POST_BUILD);
if (DebugSettings.getCurrent().enableHotCodeReplace) {
// Listen to the built file events.
ResourcesPlugin.getWorkspace().addResourceChangeListener(this, IResourceChangeEvent.POST_BUILD);
}
this.context = context;
currentDebugSession = context.getDebugSession();

Expand Down