hotdebug / debugger.xml

<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record id="view_hotdebug_tb_export" model="ir.ui.view">
            <field name="name">hotdebug.tb.export</field>
            <field name="model">hotdebug.tb.export</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Export Tracebacks">
                    <field name="filename" select="1" colspan="4"/>
                    <field name="file" filename="filename" colspan="4"/>
                </form>
            </field>
        </record>

        <record id="view_hotdebug_tb_import" model="ir.ui.view">
            <field name="name">hotdebug.tb.import</field>
            <field name="model">hotdebug.tb.import</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Import Tracebacks">
                    <field name="filename" select="1" colspan="4"/>
                    <field name="file" filename="filename" colspan="4"/>
                    <button colspan="4" name="import_tb" string="Import it"
                        type="object" icon="gtk-go-forward" />
                </form>
            </field>
        </record>

        <record id="view_hotdebug_tb_locals_tree" model="ir.ui.view">
            <field name="name">hotdebug.tb.locals.tree</field>
            <field name="model">hotdebug.tb.locals</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Locals">
                    <field name="name" />
                    <field name="value_short" />
                </tree>
            </field>
        </record>

        <record id="view_hotdebug_tb_locals_form" model="ir.ui.view">
            <field name="name">hotdebug.tb.locals.form</field>
            <field name="model">hotdebug.tb.locals</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Locals">
                    <separator colspan="4" string="Name" />
                    <field name="name" nolabel="1" colspan="4"/>
                    <separator colspan="4" string="Value" />
                    <field name="value" nolabel="1" colspan="4"/>
                </form>
            </field>
        </record>

        <record id="view_hotdebug_tb_tree" model="ir.ui.view">
            <field name="name">hotdebug.tb.tree</field>
            <field name="model">hotdebug.tb</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Tracebacks">
                    <field name="name" />
                </tree>
            </field>
        </record>

        <record id="view_hotdebug_tb_form" model="ir.ui.view">
            <field name="name">hotdebug.tb.form</field>
            <field name="model">hotdebug.tb</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Traceback">
                    <separator colspan="4" string="Traceback" />
                    <field name="name" nolabel="1" colspan="4"/>
                    <separator colspan="4" string="Source" />
                    <field name="lines" nolabel="1" colspan="4"/>
                    <field name="locals"  string="Locals" widget="one2many_list" nolabel="1" readonly="1" colspan="4" />
                </form>
            </field>
        </record>

        <record id="view_hotdebug_console" model="ir.ui.view">
            <field name="name">hotdebug.console.form</field>
            <field name="model">hotdebug.console</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Hot debugger">
                    <notebook>
                        <page string="Console">
                            <field name="output" />
                            <field name="cmd" />
                            <newline />
                            <button colspan="2" name="restart_console" string="Restart console" type="object" icon="gtk-go-forward" />
                        </page>
                        <page string="Last exception">
                            <field name="catch_console_exception" invisible="1" />
                            <field name="catch_server_exception" invisible="1" />
                            <button colspan="2" name="set_catch_console_exception" string="Start to catch console exception"
                                attrs="{'readonly':[('catch_console_exception','=',True)]}"
                                context="{'catch_console_exception':True}"
                                type="object" icon="gtk-go-forward" />
                            <button colspan="2" name="set_catch_console_exception" string="Stop to catch console exception"
                                attrs="{'readonly':[('catch_console_exception','=',False)]}"
                                context="{'catch_console_exception':False}"
                                type="object" icon="gtk-go-forward" />
                            <button colspan="2" name="set_catch_server_exception" string="Start to catch server exception (remember to press fresh)"
                                attrs="{'readonly':[('catch_server_exception','=',True)]}"
                                context="{'catch_server_exception':True}"
                                type="object" icon="gtk-go-forward" />
                            <button colspan="2" name="set_catch_server_exception" string="Stop to catch server exception"
                                attrs="{'readonly':[('catch_server_exception','=',False)]}"
                                context="{'catch_server_exception':False}"
                                type="object" icon="gtk-go-forward" />
                            <separator colspan="4" string="Last exception type" />
                            <field name="last_type" nolabel="1" colspan="4" />
                            <separator colspan="4" string="Last exception value" />
                            <field name="last_value" nolabel="1" colspan="4" />
                            <field name="last_traceback"  string="tracebacks" widget="one2many_list" nolabel="1" readonly="1" colspan="4" />
                            <newline />
                            <button colspan="2" name="export_tb" string="Export Tracebacks"
                                type="object" icon="gtk-go-forward" />
                            <button colspan="2" name="import_tb" string="Import Tracebacks"
                                type="object" icon="gtk-go-forward" />
                        </page>
                        <page string="Profile">
                            <field name="profile_server" invisible="1" />
                            <button colspan="2" name="set_profile" string="Start profiling"
                                attrs="{'readonly':[('profile_server','=',True)]}"
                                context="{'profile_server':True}"
                                type="object" icon="gtk-go-forward" />
                            <button colspan="2" name="set_profile" string="Stop profiling"
                                attrs="{'readonly':[('profile_server','=',False)]}"
                                context="{'profile_server':False}"
                                type="object" icon="gtk-go-forward" />
                            <field name="profile_sort" />
                            <newline />
                            <field name="profile_result" nolabel="1" colspan="4" />
                        </page>
                        <page string="Help">
                            <field name="help" nolabel="1" colspan="4"/>
                        </page>
                    </notebook>
                </form>
            </field>
        </record>

        <record model="ir.actions.act_window" id="open_hotdebug_console">
            <field name="name">Hot Debug</field>
            <field name="src_model">hotdebug.console</field>
            <field name="res_model">hotdebug.console</field>
            <field name="view_mode">form</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="view_hotdebug_console"/>
        </record>

        <menuitem id="hotdebug.menu_hotdebug" name="Hot Debug" 
            parent="base.menu_administration"
            action="open_hotdebug_console"
            sequence="100"/>
    </data>
</openerp>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.