Currently I don't think it is possible to set breakpoints in Freemarker templates to debug them.
Is it theoretically possible though?
Is it something that could be added to the Freemarker plugin?
Yes, this is theoretically possible, though I personally can't imagine a
UI for it. Feel free to vote for
http://youtrack.jetbrains.net/issue/IDEABKL-5436