Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any clues on how to debug AST objects? #92

Open
yajo opened this issue Jan 27, 2017 · 4 comments
Open

Any clues on how to debug AST objects? #92

yajo opened this issue Jan 27, 2017 · 4 comments

Comments

@yajo
Copy link
Contributor

yajo commented Jan 27, 2017

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?

@paradoxxxzero
Copy link
Member

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.

@blaggacao
Copy link

blaggacao commented Feb 11, 2017

@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...

@paradoxxxzero
Copy link
Member

paradoxxxzero commented Feb 11, 2017 via email

@yajo
Copy link
Contributor Author

yajo commented Feb 13, 2017

I submitted odoo/odoo#15468, let's see if there's any activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants