This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 250459
Collapse All | Expand All

(-)a/maven/src/org/netbeans/modules/maven/debug/DebuggerChecker.java (+14 lines)
Lines 56-61 Link Here
56
import org.apache.maven.artifact.versioning.DefaultArtifactVersion;
56
import org.apache.maven.artifact.versioning.DefaultArtifactVersion;
57
import org.netbeans.api.debugger.DebuggerEngine;
57
import org.netbeans.api.debugger.DebuggerEngine;
58
import org.netbeans.api.debugger.DebuggerManager;
58
import org.netbeans.api.debugger.DebuggerManager;
59
import org.netbeans.api.debugger.jpda.DebuggerStartException;
59
import org.netbeans.api.debugger.jpda.JPDADebugger;
60
import org.netbeans.api.debugger.jpda.JPDADebugger;
60
import org.netbeans.api.java.classpath.ClassPath;
61
import org.netbeans.api.java.classpath.ClassPath;
61
import org.netbeans.api.java.queries.SourceForBinaryQuery;
62
import org.netbeans.api.java.queries.SourceForBinaryQuery;
Lines 80-85 Link Here
80
import org.openide.LifecycleManager;
81
import org.openide.LifecycleManager;
81
import org.openide.filesystems.FileObject;
82
import org.openide.filesystems.FileObject;
82
import org.openide.loaders.DataObject;
83
import org.openide.loaders.DataObject;
84
import org.openide.util.Exceptions;
83
import org.openide.util.NbCollections;
85
import org.openide.util.NbCollections;
84
import org.openide.windows.InputOutput;
86
import org.openide.windows.InputOutput;
85
import org.openide.windows.OutputWriter;
87
import org.openide.windows.OutputWriter;
Lines 295-300 Link Here
295
                res.getInputOutput().getErr().println("Missing jpda.stopclass property in action mapping definition. Cannot reload class.");
297
                res.getInputOutput().getErr().println("Missing jpda.stopclass property in action mapping definition. Cannot reload class.");
296
            }
298
            }
297
        }
299
        }
300
        String attachTo = config.getProperties().get(Constants.ACTION_PROPERTY_JPDALISTEN);
301
        if (attachTo != null) {
302
            try {
303
                int port = Integer.parseInt(attachTo);
304
                JPDADebugger.attach("localhost", port, new Object[0]);
305
            } catch (NumberFormatException ex) {
306
                LOGGER.log(Level.FINE, "Cannot parse " + attachTo + " as number", ex);
307
            } catch (DebuggerStartException ex) {
308
                ex.printStackTrace(res.getInputOutput().getErr());
309
            }
310
        }
311
        
298
    }
312
    }
299
    
313
    
300
    
314
    

Return to bug 250459