declex icon indicating copy to clipboard operation
declex copied to clipboard

Integrate with IntelliJ platform to catch breakpoints (plugin)

Open smaugho opened this issue 7 years ago • 0 comments

IntelliJ (so Android Studio) writes all the breakpoints to the file workspace.xml, under this component:

  <component name="XDebuggerManager">
    <breakpoint-manager>
      <breakpoints>
        <line-breakpoint enabled="true" type="java-line">
          <url>file://$PROJECT_DIR$/app/somefile.java</url>
          <line>420</line>
          <properties />
          <option name="timeStamp" value="180" />
        </line-breakpoint>
      </breakpoints>
      <option name="time" value="724" />
    </breakpoint-manager>
  </component>

When the file is modified the IDE shows and hide the breakpoints automatically.

The idea is to make a plugin which detects breakpoints in the code, and place this breakpoints properly in the Generated file.. for instance, breakpoints in an annotation will place breakpoints in some important parts of this annotations.

The most important one, are the breakpoints in the Actions, when these are placed inside actions, the code can be scanned and the breakpoint can then be placed in the specific place of that code, so that the debugger will stop exactly where it is required.

A cache with info can be created at the project level in order to know which breakpoints were generated by the plugin, so that then could be deactivated if it is deactivated in the main file.

smaugho avatar Mar 29 '17 22:03 smaugho