docker icon indicating copy to clipboard operation
docker copied to clipboard

Pycharm Debugger

Open marcelogpereira opened this issue 2 years ago • 5 comments

Hello, I used to work with odoo directly in my machine in order to develop custom code, but i switched to odoo docker this week. The issue is that i cannot find a way to use the pycharm debugger.

Can anyone help me with that?

marcelogpereira avatar May 13 '22 10:05 marcelogpereira

Hi @marcelopereiraarxi Are you using PyCharm Professional or PyCharm Community?

trinhanhngoc avatar May 19 '22 09:05 trinhanhngoc

Hello @trinhanhngoc im using the PyCharm Professional

marcelogpereira avatar May 19 '22 09:05 marcelogpereira

@marcelopereiraarxi You can find the answer in this documentation: https://www.jetbrains.com/help/pycharm/using-docker-as-a-remote-interpreter.html

trinhanhngoc avatar May 19 '22 09:05 trinhanhngoc

@trinhanhngoc thank you! i will give it a try

marcelogpereira avatar May 19 '22 10:05 marcelogpereira

@marcelopereiraarxi Pycharm and Odoo sucks a bit on Docker. If you want to deploy properly and just open valid ports, the stupid debugger allocates a random port. So you basically have to choose, insecure Odoo on Docker with Pycharm debug or a crappy interface trick using your localhost IP address on the docker network of your sandboxed container. Is frustrating, VSCode uses same underlying debugger and it assigns a static port and just works. Every few months I check whether I can switch back to Pycharm, but VScode for now.

gdgellatly avatar Jun 23 '22 08:06 gdgellatly