Package org.eclipse.wst.xsl.debugger


org.eclipse.wst.xsl.debugger
Class DebugRunner



public class DebugRunner
extends java.lang.Object
The entry point to the debug process which is responsible for configuring a debugger and then communicating with the Eclipse process via sockets using a common set of commands.


Constructor Summary

DebugRunner(java.io.BufferedReader requestIn , java.io.PrintWriter requestOut , java.io.PrintWriter eventOut)
DebugRunner(int requestPort , int eventPort)

Method Summary

public voiddispose()
     Dispose of this - close all open sockets.
public voidloop(org.eclipse.wst.xsl.debugger.IXSLDebugger debugger)
     This method starts the given debugger in its own thread, and blocks while waiting for incoming requests from the request port, until there are no more requests.
public static voidmain(java.lang.String[] args)
     Expected arguments:
  1. the class name of the invoker
  2. the file name of the XML launch configuration file
  3. the URL of the source document
  4. the file of the output document
  5. not used (anything)
  6. the class name of the IXSLDebugger instance
  7. the port used for requests
  8. the port used for debug events

Constructor Detail

DebugRunner

public DebugRunner(java.io.BufferedReader requestIn , java.io.PrintWriter requestOut , java.io.PrintWriter eventOut)

Create a new instance of this using the supplied readers and writers.


DebugRunner

public DebugRunner(int requestPort , int eventPort)

Create a new instance of this given a request port and an event port.


Methods Detail

dispose

public void dispose()

Dispose of this - close all open sockets.


loop

public void loop(org.eclipse.wst.xsl.debugger.IXSLDebugger debugger)

This method starts the given debugger in its own thread, and blocks while waiting for incoming requests from the request port, until there are no more requests.

Parameters

debugger - the debugger to start in a thread

Throws:

org.eclipse.wst.xsl.invoker.TransformationException - if a problem occurred while transforming


main

public void main(java.lang.String[] args)

Expected arguments:

  1. the class name of the invoker
  2. the file name of the XML launch configuration file
  3. the URL of the source document
  4. the file of the output document
  5. not used (anything)
  6. the class name of the IXSLDebugger instance
  7. the port used for requests
  8. the port used for debug events

Parameters

args