java.lang.Object
org.eclipse.lemminx.customservice.synapse.debugger.DebuggerHelper

public class DebuggerHelper extends Object
This class is used get info about the breakpoint to support debugging in the Synapse language.
  • Constructor Details

    • DebuggerHelper

      public DebuggerHelper(String filePath)
    • DebuggerHelper

      public DebuggerHelper(STNode syntaxTree)
  • Method Details

    • validateBreakpoints

      public List<BreakpointValidity> validateBreakpoints(List<Breakpoint> breakpoints)
      This method is used to validate the breakpoints.
      Parameters:
      breakpoints - list of breakpoints
      Returns:
      list of breakpoint validity
    • generateDebugInfoJson

      public List<com.google.gson.JsonElement> generateDebugInfoJson(List<Breakpoint> breakpoints)
      This method is used to generate the debug info json that will have the details about each breakpoint.
      Parameters:
      breakpoints - list of breakpoints
      Returns:
      list of json elements
    • generateDebugInfo

      public List<IDebugInfo> generateDebugInfo(List<Breakpoint> breakPoints)
      This method is used to generate the debug info. It will traverse the syntax tree and generate the info for each breakpoint.
      Parameters:
      breakPoints - list of breakpoints
      Returns:
      list of debug info
    • getStepOverBreakpoints

      public StepOverInfo getStepOverBreakpoints(Breakpoint breakpoint)
      This method is used to get the step over breakpoints.
      Parameters:
      breakpoint - breakpoint
      Returns:
      step over info