I have a company created templating language that I've created a custom language plugin for. Now I'd like to add the functionality to my plugin similar to JSP so that my users can debug templates. Any ideas where I begin? I've found the com.intellij.debugger package in the Open API but I haven't found and good documentation. Based on the javadoc for that package I realize I need to implement PositionManager which I get. But where do I 'register' an instance of my PositionManager with IDEA or my plugin? Also, how do I get the editor to allow me to set breakpoints?