wdb icon indicating copy to clipboard operation
wdb copied to clipboard

Any clues on how to debug AST objects?

Open yajo opened this issue 9 years ago • 4 comments

I'm having to debug some Odoo 10.0 views, which are now AST objects.

Whenever I interrupt inside one with <t t-debug="wdb"/>, I get to a blank view and see no source code:

captura de pantalla de 2017-01-27 15-03-18

Not sure if I should modify some things for the AST, if this is expected behavior, or if wdb could actually be improved to debug such objects. Could anybody help me here please?

yajo avatar Jan 27 '17 14:01 yajo

I think it's because there's no filename and therefore no source attached to the current frame. If it's possible to access the current template source from the frame maybe it's possible to display it but I never used this framework so I don't really know.

paradoxxxzero avatar Jan 27 '17 16:01 paradoxxxzero

@Yajo Havn't we got file reference in the ir_ui_view table? Any way you could see to plug that into wdb? Maybe a fix to odoo upstream? Just thinking loud...

blaggacao avatar Feb 11 '17 07:02 blaggacao

You could perhaps take a look at how jinja2 rewrite the stack https://github.com/pallets/jinja/blob/master/jinja2/debug.py

Le sam. 11 févr. 2017 à 08:08, David Arnold [email protected] a écrit :

@Yajo https://github.com/Yajo we have file reference in the ir_ui_view table, any way you could see to plug that into wdb? Maybe a fix to odoo upstream? Just thinking loud...

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/Kozea/wdb/issues/92#issuecomment-279126788, or mute the thread https://github.com/notifications/unsubscribe-auth/AAQjKIrswsVQM7z1UujzsnBWNGNTcxrBks5rbV5wgaJpZM4LvzBa .

paradoxxxzero avatar Feb 11 '17 15:02 paradoxxxzero

I submitted https://github.com/odoo/odoo/issues/15468, let's see if there's any activity.

yajo avatar Feb 13 '17 11:02 yajo