[hg] main-silver: #237184: Print connector, it's arguments and e...

  • From:
  • To:
  • Subject: [hg] main-silver: #237184: Print connector, it's arguments and e...
  • Date: Thu, 07 Nov 2013 19:58:39 +0000

changeset 6327d0d12915 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/6327d0d12915
description:
        #237184: Print connector, it's arguments and exception stack trace 
into messages.log file when the attach fails.

diffstat:

 api.debugger.jpda/src/org/netbeans/api/debugger/jpda/AttachingDICookie.java 
|  10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diffs (35 lines):

diff --git 
a/api.debugger.jpda/src/org/netbeans/api/debugger/jpda/AttachingDICookie.java 
b/api.debugger.jpda/src/org/netbeans/api/debugger/jpda/AttachingDICookie.java
--- 
a/api.debugger.jpda/src/org/netbeans/api/debugger/jpda/AttachingDICookie.java
+++ 
b/api.debugger.jpda/src/org/netbeans/api/debugger/jpda/AttachingDICookie.java
@@ -52,6 +52,8 @@
 import java.io.IOException;
 import java.util.Iterator;
 import java.util.Map;
+import java.util.logging.Level;
+import java.util.logging.Logger;
 
 
 /**
@@ -80,6 +82,8 @@
      */
     public static final String ID = "netbeans-jpda-AttachingDICookie";
 
+    private static final Logger logger = 
Logger.getLogger(AttachingDICookie.class.getName());
+
     private AttachingConnector attachingConnector;
     private Map<String,? extends Argument> args;
 
@@ -220,7 +224,13 @@
      */
     public VirtualMachine getVirtualMachine () throws IOException,
     IllegalConnectorArgumentsException {
+        try {
         return attachingConnector.attach (args);
+        } catch (IOException ioex) {
+            String msg = "Attaching Connector = "+attachingConnector+", 
arguments = "+args; // NOI18N
+            logger.log(Level.INFO, msg, ioex);
+            throw ioex;
+        }
     }
     
     

[hg] main-silver: #237184: Print connector, it's arguments and e...

mentlicher 11/07/2013

Project Features

About this Project

Debugger was started in November 2009, is owned by tpavek, and has 29 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close