Refactor of the debugger.
Refactor of debugger plugin.