From 0e14ec6e9cfc1333bb075f2ffa6bf830e277c4f4 Mon Sep 17 00:00:00 2001 From: Egor Ushakov Date: Thu, 26 Oct 2017 16:23:11 +0300 Subject: [PATCH] IDEA-181118 Run configuration fails in debug --- .../intellij/rt/debugger/agent/CaptureAgent.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/java/debugger/debugger-agent/src/com/intellij/rt/debugger/agent/CaptureAgent.java b/java/debugger/debugger-agent/src/com/intellij/rt/debugger/agent/CaptureAgent.java index 9d3040a3b4f6..d32f7063815e 100644 --- a/java/debugger/debugger-agent/src/com/intellij/rt/debugger/agent/CaptureAgent.java +++ b/java/debugger/debugger-agent/src/com/intellij/rt/debugger/agent/CaptureAgent.java @@ -64,6 +64,9 @@ public class CaptureAgent { // } // } //} + + setupJboss(); + if (DEBUG) { System.out.println("Capture agent: ready"); } @@ -74,6 +77,16 @@ public class CaptureAgent { } } + private static void setupJboss() { + String modulesKey = "jboss.modules.system.pkgs"; + String property = System.getProperty(modulesKey, ""); + if (!property.isEmpty()) { + property += ","; + } + property += "com.intellij.rt"; + System.setProperty(modulesKey, property); + } + private static String readSettings(String path) { FileReader reader = null; try {