pydevd-odoo icon indicating copy to clipboard operation
pydevd-odoo copied to clipboard

can't excute python sentence in console

Open ohplz opened this issue 2 years ago • 7 comments

image

ohplz avatar Nov 14 '22 03:11 ohplz

Hi @ohplz

I'm not sure what the problem is here. Can you provide more information?

trinhanhngoc avatar Nov 14 '22 03:11 trinhanhngoc

sure, sry not to offer more info earlier~

I'm using pycharm as IDE, and running Odoo in debug mode, here is my configuration. image

when my program run into a breakpoint like this, I thought I can directly input python sentence in console, and it will excute it . Just like debug JS in browser's DevTools's console. image

but this error raised, and it seems to from pydev-odoo module. image

plz help me out, thanks!

ohplz avatar Nov 14 '22 03:11 ohplz

  1. pydevd-odoo is an extension of pydevd (https://github.com/fabioz/PyDev.Debugger) so any error can come from pydevd itself.
  2. What is data in your context? Does the error also occur with other variables ?

trinhanhngoc avatar Nov 14 '22 03:11 trinhanhngoc

data is just a dict, but indeed, all the variables will triger up this error. image

ohplz avatar Nov 14 '22 05:11 ohplz

What version of PyCharm are you using? I just tested on my machine (Odoo 14, PyCharm Pro 2022.2 with/without pydevd-odoo) and got no errors at all.

trinhanhngoc avatar Nov 14 '22 06:11 trinhanhngoc

image

trinhanhngoc avatar Nov 14 '22 06:11 trinhanhngoc

I'm using PyCharm 2022.3 EAP (Professional Edition) and also Odoo 14.

I'm still trying to resolve this problem, since your env hasn't this error, guess I have to solve it myself.

Thanks for your help!

If I got sth, I'll get back to you!

ohplz avatar Nov 14 '22 08:11 ohplz