*** FREE REMOTE DEBUGGER UTILITY ***

I just created this "remote debugger" last week because I wanted to get runtime output from my servlets without having to resort to finding the server logs...scanning them...etc. It can also be used to log info locally. Here is the code for the screen logger:
package com.mycode.remotedebugger.applet;import javax.swing.*;import java.awt.*;import java.awt.event.*;import java.net.*;import java.io.*;public class CRemoteDebugger extends JApplet implements Runnable{   boolean isStandalone         = false;   static ServerSocket m_socket = null;   JScrollPane jScrollPane1     = new JScrollPane();   static Thread runner         = null;   static Socket connection     = null;   BorderLayout borderLayout1   = new BorderLayout();   JTextArea jTextArea1         = new JTextArea();   /**    * Constructs a new instance.    */   /**    * getParameter    * @param key    * @param def    * @return java.lang.String    */   public String getParameter(String key, String def) {      if (isStandalone) {         return System.getProperty(key, def);      }      if (getParameter(key) != null) {         return getParameter(key);      }      return def;   }   public CRemoteDebugger() {   }   /**    * Initializes the state of this instance.    */   /**    * init    */   public void init() {      try  {         jbInit();      }      catch (Exception e) {         e.printStackTrace();      }   }   public boolean isConnected()   {      return m_socket != null;   }   private void jbInit() throws Exception   {      this.setSize(new Dimension(400, 400));      this.getContentPane().add(jScrollPane1, BorderLayout.CENTER);      jScrollPane1.getViewport().add(jTextArea1, null);      runner = new Thread(this);      runner.start();   }   public void run()   {      try {         m_socket = new ServerSocket(6666);         while(true)  {            InetAddress ia = InetAddress.getLocalHost();            connection = m_socket.accept();            InputStream is = connection.getInputStream();            BufferedReader br = new BufferedReader(new InputStreamReader(is));            String strLine = br.readLine();            while(strLine != null)  {               jTextArea1.append(strLine + "\n");               jTextArea1.setCaretPosition(jTextArea1.getDocument().getLength());               strLine = br.readLine();            }         }      } catch(Exception e)  {      }   }   /**    * start    */   public void start() {     setLookAndFeel();   }   /**    * stop    */   public void stop() {   }   /**    * destroy    */   public void destroy() {    if(m_socket != null)  {      try  {         m_socket.close();      } catch (IOException ioe)  {      }      m_socket = null;    }    if(runner != null)      runner = null;    if(connection != null)  {      try {         connection.close();      } catch(IOException ioe)  {      }         connection = null;    }   }   /**    * getAppletInfo    * @return java.lang.String    */   public String getAppletInfo() {      return "Applet Information";   }   /**    * getParameterInfo    * @return java.lang.String[][]    */   public String[][] getParameterInfo() {      return null;   }   /**    * main    * @param args    */   public static void main(String[] args) {      CRemoteDebugger applet = new CRemoteDebugger();      applet.isStandalone = true;      JFrame frame = new JFrame();      frame.setTitle("Remote Debugging");      frame.getContentPane().add(applet, BorderLayout.CENTER);      applet.init();      applet.start();      frame.setSize(400, 420);      Dimension d = Toolkit.getDefaultToolkit().getScreenSize();      frame.setLocation((d.width - frame.getSize().width) / 2, (d.height - frame.getSize().height) / 2);      frame.setVisible(true);      frame.addWindowListener(new WindowAdapter() {        public void windowClosing(WindowEvent e) {          if(m_socket != null)  {             try  {                m_socket.close();             } catch (IOException ioe)  {             }             m_socket = null;          }          if(runner != null)            runner = null;          if(connection != null)  {             try {               connection.close();          } catch(IOException ioe)  {          }          connection = null;        }           System.exit(0);        }      });   }   void setLookAndFeel(){      try {         UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());      }      catch(Exception e) {         e.printStackTrace();      }   }}
I compiled this and put it into a jar file for easy running via a shortcut on my desktop.
Here is the static function you would put either in your application/applet or perhaps in some utility class that you import:
package com.mycode.common.utilities;import java.awt.*;import java.awt.event.*;import java.net.*;import java.io.*;public class RemoteDebugMessage{   static Socket m_socket            = null;   static PrintWriter serverOutput   = null;   /**    * Constructor    */   public static void Print(String strClient, int nPort, String strMessage)   {      try {         m_socket = new Socket(strClient,nPort);         if(m_socket != null)  {            OutputStream os = m_socket.getOutputStream();            if(os != null)  {               serverOutput = new PrintWriter(new BufferedOutputStream(m_socket.getOutputStream()),true);               if(serverOutput != null)  {                  serverOutput.println(strMessage);               }            }         }      } catch(IOException ioe)  {      }      try {         m_socket.close();         m_socket = null;         serverOutput = null;      } catch(IOException ioe)  {      }   }}
The "server" side listens on port 6666 (you can always change to whatever port you like and recompile) Then, in your code where you wish to watch messages in realtime, you call the static function above:
RemoteDebugMessage.Print("MachineName",6666,"This is my message!");
Where "MachineName" is the name of your pc.

Thank god for the scrollbars. :)
Maybe you should repost and add proper newlines.

Similar Messages

  • When I started my Mac the screen was white with the Apple logo and power motion icon running.  I attempted to turn off Mac then a message stating "Debugger called:  Button SCI . Also "Waiting for remote debugger connection."  What is my next step?

    When I started my Mac the screen was white with the Apple logo and power motion icon running.  I attempted to turn off Mac then a message stating "Debugger called:  <Button SCI>. Also "Waiting for remote debugger connection."  What is my next step?

    Hi , and a warm welcome to the forums!
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.
    If 10.7.0 or later...
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions.
    And sorry to report that OSX is more Widows like than ever, but….
    If that doesn't help Reinstall the OS.

  • If VS 2008 'Remote Debugger' is added to an existing VS 2008 install, should VS 2010 first be uninstalled?

    I found that Visual Studio 2008 Remote Debugger was not included when Visual Studio 2008 was installed.  I also have Visual Studio 2010 installed.  Should Visual Studio 2010 be uninstalled prior to installing Visual Studio 2008
    Remote Debugger?
    Thanks

    Hi Bontrager,
    Based on your issue, I know that since the different Visual Studio versions exist as separate applications. So if you want to install the Visual Studio 2008 Remote Debugger, you will not need to uninstall Visual Studio 2010.  Visual Studio 2010 will
    not affect you install the Visual Studio 2008 Remote Debugger.
    Hope it help you!
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Is there a free Remote JFileChooser?

    Hello,
    Does anybody know if there is code for a free Remote JFileChooser?
    (that would be of great help and save the effort of reinventing the wheel)
    thanks,
    Anil

    The problem is not in JFileChooser. That all stays
    the same. What you want is a FileSystemView of some
    remote location. I don't know that there is a
    freeware or shareware version of such a thing
    principally because it's not a well defined problem:
    There are lots of ways + protocols you could
    potentially query another computer for info about its
    FS. In short, you probably have to do this yourselfThanks for replying. Apparently the only solutions I have seen involve installing server-side stuff. (not good)
    http://www.fishcroft.ca
    The user needs to Remote Save (via ftp) files to a unix box. Also I shall be using Webstart to run the application, so simply using JFileChooser wont do. If I code a solution, I shall post it here.
    thanks,
    Anil

  • How to kill remote debugger listener...?

    Hi,
    Is there a way to kill the remote debugger listener, without closing the sql-developer (1.5.5)...?
    Because it hangs sometimes and I have to establish a new port and a new port ...
    Thanks, Juergen

    You can't.
    I complained about this too a couple of years ago, management acknowledged the issue, but still no sign of wanting to enhance the behaviour.
    Only solution I know is restart sqldev.
    Best add this as feature request at the SQL Developer Exchange, so other users can vote to add weight for possible future implementation.
    Regards,
    K.

  • Are there any free remote desktop programs

    Are there any free remote desktop or remote assistance programs available for Panther? I only need a server for the Panther computer, as I would be helping that user, but he would not need to help me. I was wondering if anyone knew of any. I wanted to try LogMeIn, but it requires Tiger. I couldn't find anything at Wikipedia's comparison of remote desktop applications. Thanks

    Look for the following at VersionTracker or MacUpdate.
    AstroAppMacX 2.11
    Share My Desktop 1.2
    Vine Server 3.0

  • Multiple remote debugger connections from JDev

    Hello,
    I'm running JDev Studio Edition Version 11.1.2.3.0
    I need to debug an application running on a 2 node WLS Cluster. I have the two servers running in debug mode listening on different hosts/ports.
    In JDev I click the debug button twice and open a connection to each server in turn, however I suspect that the last connection made may be the only one that's active?
    Can somebody please clarify whether it's possible to open multiple remote debugger connections in JDev?
    Many thanks.

    Hello,
    I'm running JDev Studio Edition Version 11.1.2.3.0
    I need to debug an application running on a 2 node WLS Cluster. I have the two servers running in debug mode listening on different hosts/ports.
    In JDev I click the debug button twice and open a connection to each server in turn, however I suspect that the last connection made may be the only one that's active?
    Can somebody please clarify whether it's possible to open multiple remote debugger connections in JDev?
    Many thanks.

  • No Free Remote Controls

    Why has Verizon changed their policies on free remote controls? In addition to paying for cable fees, I pay $38 per month for renting FIOS equipment that is 6 years old. They want another $15 for replacing one remote control. This is highway robbery. 

    Amen dmart.
    I called, fully expecting a no hassle customer service experience.  It isn't the $15, it is the fact that after spending $3,000 a year for 10 years the CSR is amazed that I think they should replace their broken equipment for free.
    Verizon hates its customers.  They can, because Comcast hates us too.
    As bad as politicians and just as corrupt.

  • Standalone remote control utility?

    Is there any other standalone remote control utility other than one from
    Innovative Softsystems?

    http://www.hdopp.de/S-ZENworks-Body.html#zenwsbrowser
    [email protected] wrote:
    > Is there any other standalone remote control utility other than one from
    > Innovative Softsystems?
    Craig Wilson
    CNE3, 4, 5 - MCSE - CCNA
    NSC Sysop (http://support.novell.com/forums/)
    Tech Writer - http://www.ithowto.com
    (I Peter 4:10)

  • Remote debugger

    Hi, I am looking for a remote debugger for a Java application. Does anyone have any advice ? Thanks.

    Hi Meggie,
    try to use JBuilder 4 (or even higher) because this IDE has everything you need. You can even debug EJBs remotely with it.
    Gabe

  • Oracle Reports Remote Printing Utility (ORARRP)

    Hi,
    Can Oracle Reports Remote Printing Utility (ORARRP) do chinese character printing?
    Thanks in advance.
    Regards,
    Edmund

    Hello,
    Check the link below.
    is it possible to printing report directly to printer from Form 10g ids
    -Ammad

  • Is Oracle Remote Printing utility - orarp licensed

    Hi,
    Wondering whether the oracle remote printing utility - orarrp is licensed. Its not supported by oracle metalink but usage at the utility involves and licensing.
    Best Regards,
    Ravikumar

    Thank you for the reply..Also for giving hopes that something of the sort of functionality of ORARRP would be taken up for Linux..Because, certain functionalities like printing(sort of automatic, directed by pressing a particular key at the CLIENTSIDE) from USEREXITS in the earlier versions, cannot be reproduced without using something like ORARRP in web deployed Reports6i reports(where priting can be invoked using web.show_document('http://---/report_name.rrph' or 'http://---/report_name.rrpr'))..
    Thank you,
    Ranjith..

  • Visual Studio cannot remote debug Azure cloud service: There was a failure to launch the remote debugger

    I am trying to invoke remote debugger on an Azure worker role cloud service, following the example of
    http://msdn.microsoft.com/en-us/library/azure/ff683670.aspx
    But on attaching the remote debugger for the cloud service instance
    Microsoft Visual Studio
    There was a failure to launch the remote debugger.
    OK  
    According to somebody else's extra coverage on the topic, there are extra ports 4016/4017 that need to be taken care of (but do they have to be exposed externally)?
    http://developers.de/blogs/damir_dobric/archive/2014/02/04/behind-windows-azure-remote-debugger.aspx
    So servicedefinition.csdef gets
        <Endpoints>
          <InputEndpoint name="Endpoint1" protocol="http" port="80" />
          <InputEndpoint name="RemoteDebugger" protocol="tcp" port="4016" localPort="4016" />
          <InputEndpoint name="RemoteDebugger2" protocol="tcp" port="4017" localPort="4017" />
          <InstanceInputEndpoint name="Microsoft.WindowsAzure.Plugins.RemoteDebugger.Connector" protocol="tcp" localPort="30398">
            <AllocatePublicPortFrom>
              <FixedPortRange min="30400" max="30424" />
            </AllocatePublicPortFrom>
          </InstanceInputEndpoint>
          <InstanceInputEndpoint name="Microsoft.WindowsAzure.Plugins.RemoteDebugger.Forwarder" protocol="tcp" localPort="31398">
            <AllocatePublicPortFrom>
              <FixedPortRange min="31400" max="31424" />
            </AllocatePublicPortFrom>
          </InstanceInputEndpoint>
        </Endpoints>
    Serviceconfiguration.cscfg gets
          <Setting name="Microsoft.WindowsAzure.Plugins.RemoteDebugger.Connector.Enabled" value="true" />
          <Setting name="Microsoft.WindowsAzure.Plugins.RemoteDebugger.Connector.Version" value="2.3" />
          <Setting name="Microsoft.WindowsAzure.Plugins.RemoteDebugger.ClientThumbprint" value="THUMBNAIL" />
          <Setting name="Microsoft.WindowsAzure.Plugins.RemoteDebugger.ServerThumbprint" value="THUMBNAIL" />
        </ConfigurationSettings>
        <Certificates>
          <Certificate name="Microsoft.WindowsAzure.Plugins.RemoteDebugger.TransportValidation" thumbprint="THUMBNAIL" thumbprintAlgorithm="sha1"
    />
        </Certificates>
    But all these are to no avail; the same error still pops for Visual Studio 2013 Update 4; Azure SDK 2.3
    Anybody regularly perform remote debugging for Azure cloud services?
    The melody of logic will always play out the truth. ~ Narumi Ayumu, Spiral

    And, how do I control that in Visual Studio?
    All I get is the Attach Debugger... context menu option in the Azure cloud service nodes in Server Explorer. That is where it is failing. There are no customisable options.
    Because of that, the Attach to Process dialog box is unable to retrieve the list of processes (to debug) in the remote worker role instance server.
    I tested a blank-template worker role project and published to a new cloud project, and this simplistic copy had no problems with the Remote debugger.
    Now the question is, what is it about this real-world project/cloud service that is different from blank sample? From what I compare between what I think are the relevant settings, there are none.
    ServiceDefinition.csdef
    <Imports>
    <Import moduleName="Diagnostics" />
    <Import moduleName="RemoteAccess" />
    <Import moduleName="RemoteForwarder" />
    <Import moduleName="RemoteDebuggerConnector" />
    </Imports>
    <Contents>
    <Content destination=".\">
    <SourceDirectory path="D:\Projects\experiments\workerrole1\workerrole1\rcf\Debug\RemoteDebuggerContent\" />
    </Content>
    </Contents>
    <Endpoints>
    <InstanceInputEndpoint name="Microsoft.WindowsAzure.Plugins.RemoteDebugger.Connector" protocol="tcp" localPort="30398">
    <AllocatePublicPortFrom>
    <FixedPortRange min="30400" max="30424" />
    </AllocatePublicPortFrom>
    </InstanceInputEndpoint>
    <InstanceInputEndpoint name="Microsoft.WindowsAzure.Plugins.RemoteDebugger.Forwarder" protocol="tcp" localPort="31398">
    <AllocatePublicPortFrom>
    <FixedPortRange min="31400" max="31424" />
    </AllocatePublicPortFrom>
    </InstanceInputEndpoint>
    </Endpoints>
    ServiceConfiguration.cscfg
    <ConfigurationSettings>
    <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="DefaultEndpointsProtocol=https;AccountName=storage;AccountKey=" />
    <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.Enabled" value="true" />
    <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountUsername" value="" />
    <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountEncryptedPassword" value="" />
    <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountExpiration" value="2015-12-31T23:59:59.0000000+08:00" />
    <Setting name="Microsoft.WindowsAzure.Plugins.RemoteForwarder.Enabled" value="true" />
    <Setting name="Microsoft.WindowsAzure.Plugins.RemoteDebugger.Connector.Enabled" value="true" />
    <Setting name="Microsoft.WindowsAzure.Plugins.RemoteDebugger.Connector.Version" value="2.4" />
    <Setting name="Microsoft.WindowsAzure.Plugins.RemoteDebugger.ClientThumbprint" value="" />
    <Setting name="Microsoft.WindowsAzure.Plugins.RemoteDebugger.ServerThumbprint" value="" />
    </ConfigurationSettings>
    <Certificates>
    <Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint="" thumbprintAlgorithm="sha1" />
    <Certificate name="Microsoft.WindowsAzure.Plugins.RemoteDebugger.TransportValidation" thumbprint="" thumbprintAlgorithm="sha1" />
    </Certificates>
    The melody of logic will always play out the truth. ~ Narumi Ayumu, Spiral

  • Ecc6.0 server free remote access

    Hi,
           Presently am working with Sap R/3 4.7 version I interest to learn WebDynpro, is there any free Ecc.60 remote access is available through browser,
    with regards,
    Thiru

    You can go to <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloads">SDN Downloads</a> and download ABAP or Java stacks...You get NetWeaver Sneak Preview ready to develop WebDynpro app's....
    Greetings,
    Blag.

  • Remote debugger gives error about not supporting this version

    I have LabWindows/CVI 8.0.1 (356) on a Windows 7 machine and I'm trying to remotely debug a product on a Windows XP machine.  The product is a DLL called by TestStand sequences.  TestStand is version 2.0.1f1.  When trying to connect, I receive the following error message ( see attachment ) after the debugger machine sees TestStand was launched on the debugee machine.  What does this mean?  Thanks.
    -G-
    Attachments:
    Error_Msg.docx ‏30 KB

    Hi Grasshopper,
    This problem is possibly occurring because your LabWindows/CVI Run-Time Engine is newer than your version of LabWindows/CVI Development System.  Please refer to the following forum thread which mentions a similar problem with remote debugging:  http://forums.ni.com/t5/LabWindows-CVI/Remote-Debug-problem-with-CVI-Runtime-Versions/m-p/2067462 .
    To correct this problem, you must make the version of your Run-Time Engine (RTE) the same as or earlier than the version of your Development System.  You can either do this by upgrading LabWindows/CVI to a newer version, or by uninstalling the RTE on your debugger/debugee, and then installing the RTE corresponding to your Development System on both machines.
    Please let me know after completing this step whether you encounter any further errors.
    Warm Regards,
    Daniel D.
    National Instruments
    Automated Test Software R&D

Maybe you are looking for

  • Purchase Order Committments report

    Hi All Can anyone advise as to what reports i can run that will show me what Purchase orders have no goods delivered against it and goods partly delivered or over delivery against it. A sort of outstanding Purchase Order/Deliveries report Vishnu

  • Can you print from the ADF with Officejet Pro 8600 (not plus) & how to print checks in correct order

    Client has Officejet Pro 8600 I(not plus) They want to print payroll checks out of QuickBooks but when they put the checks in tray 1, it pulls the check that is on the top, which happens to be the last check # in the stack.  Is there a way to print w

  • CRM Survey Evaluation

    Hi All, I want to user Survey Evaluation form CRM_SURVEY_SUITE without use BW extraction, but I see only some fields available. I need in particular Customer Code and Customer Name by they are not available in Survey avalutaion button into transactio

  • Connecting a new iMac duo and iMac DVD SE

    I've just bought a new iMac duo and would like to find out how to connect my old iMac DVD SE wirelessly. I phoned the local apple store and they were totally unhelpful and told me I can no longer buy an airport card for my old imac and could provide

  • Oracle 9i manual database creation on the Red Hat 9 Linux

    I installed Oracle 9I on the Red Hat 9 Linux successfully with automatic database creation. I tried to create second database manually and everything seemed to be fine until I issued create database statement. I got the following error: ERROR at line