define([
    "less!stylesheets/tab.less"
], function() {
    var _ = codebox.require("hr/utils");
    var $ = codebox.require("hr/dom");
    var hr = codebox.require("hr/hr");
    var Tab = codebox.require("views/tabs/base");
    var box = codebox.require("core/box");
    var user = codebox.require("core/user");

    var GridView = codebox.require("views/grid");

    var DebugTab = Tab.extend({
        className: Tab.prototype.className+ " addon-debugger-tab",
        defaults: {
            
        },
        menuTitle: "Debugger",
        events: {
            
        },

        initialize: function(options) {
            var that = this;
            DebugTab.__super__.initialize.apply(this, arguments);

            // Create grid for sections
            this.grid = new GridView({
                columns: 1000
            });
            this.grid.addView(new hr.View());
            this.grid.addView(new hr.View());
            this.grid.addView(new hr.View());
            this.grid.appendTo(this);
            
            // Describe debug tab
            this.setTabTitle("Debugger");
            this.menu.menuSection([
                {
                    'type': "checkbox",
                    'title': "Exit",
                    'action': function(state) {
                        that.closeTab();
                    }
                }
            ]);

            return this;
        },

        // Render
        render: function() {
            return this.ready();
        }
    });

    return DebugTab;
});

@@ -165,24 +165,77 @@
 e(%22hr/hr%22);%0A
+    var Command = codebox.require(%22models/command%22);%0A
     var Tab 
@@ -1070,356 +1070,1471 @@
 s);%0A
-            %0A            // Describe debug tab%0A            this.setTabTitle(%22Debugger%22);%0A            this.menu.menuSection(%5B%0A                %7B%0A                    'type': %22checkbox%22,%0A                    'title': %22Exit%22,%0A                    'action': function(state) %7B%0A                        that.closeTab();%0A                    %7D%0A                %7D
+%0A%0A            // Base commands: start, stop, next, continue, restart%0A            this.commandStart = new Command(%7B%7D, %7B%0A                title: %22Start%22%0A            %7D);%0A            this.commandStop = new Command(%7B%7D, %7B%0A                title: %22Stop%22%0A            %7D);%0A            this.commandNext = new Command(%7B%7D, %7B%0A                title: %22Next%22%0A            %7D);%0A            this.commandContinue = new Command(%7B%7D, %7B%0A                title: %22Continue%22%0A            %7D);%0A            this.commandRestart = new Command(%7B%7D, %7B%0A                title: %22Restart%22%0A            %7D);%0A            %0A            // Describe debug tab%0A            this.setTabTitle(%22Debugger%22);%0A%0A            // Tab menu%0A            this.menu%0A            .menuSection(%5B%0A                this.commandStart,%0A                this.commandStop,%0A                this.commandRestart%0A            %5D)%0A            .menuSection(%5B%0A                this.commandNext,%0A                this.commandContinue%0A            %5D)%0A            .menuSection(%5B%0A                %7B%0A                    'type': %22checkbox%22,%0A                    'title': %22Exit%22,%0A                    'action': function(state) %7B%0A                        that.closeTab();%0A                    %7D%0A                %7D%0A            %5D);%0A%0A            // Statusbar menu%0A            this.statusbar.add(%5B%0A                this.commandStart,%0A                this.commandStop,%0A                this.commandNext,%0A                this.commandContinue,%0A                this.commandRestart
 %0A   

Add base command for debuggers