Interface IDexDebugInfo


public interface IDexDebugInfo
This interface represents Dex debug information for a method. Debug information can be forged and should not be trusted.

This interface offers a medium-level and high-level view of debug information available for a given method:
- medium-level: use getVariables(int) and getLineInfo(int)
- high-level (most clients will want to use that): use getKnownVariablesMap(IDexMethod)

  • Field Details

  • Method Details

    • getParameterNameIndexes

      int[] getParameterNameIndexes()
      Get the name indexes for the parameters of the method.
      Returns:
      the list of name indexes, or null if none
    • getLineInfo

      IDexDebugLine getLineInfo(int address)
      Get the information for the line of code associated with a given bytecode address.
      Parameters:
      address - offset in method in 16-bit code units
      Returns:
      the line information object, null if none
    • getVariables

      List<IDexDebugVariable> getVariables(int address)
      Parameters:
      address - offset in method in 16-bit code units
      Returns:
      a list of variables, possibly empty
    • getKnownVariablesMap

      SortedMap<Integer,List<IDexDebugVariable>> getKnownVariablesMap(IDexMethod m)
      Retrieve a map of variables defined at a given instruction point.
      Returns:
      on error, an empty map; else a map of: key= method offset (in bytes); value= list of all debug variables existing (having a definition) at that instruction