Unable to connect debugger to a docker container
I'm following the example in here to connect the WingIDE debugger to a python script running in a docker container. However, there is some connection problem.
I've enabled kLogVeryVerbose and set kLogFile = "<stdout>" to try to diagnose the problem. I run the example with this line:
docker run -v /usr/lib/wingpro7:/wingpro7 -v /home/martin/develop/docker_tests/docker:/app -p 4000:80 myapp
and I think it stays waiting for connection until it times out.
In an attempt to troubleshot the problem I've added the container's ip address, the hosts address and the localhosts to Allowed Hosts, also same addresses both with port 50005 and 50015 to Common atttach hosts, but it doesn't seem to make any difference.
These are the logging messages I get in the console:
Creating meta importer for domain dbg
winghome=/wingpro7Created meta importer
Added dir /wingpro7/bootstrap for
Added dir /wingpro7/bootstrap/__pycache__ for __pycache__.
Adding code directory to merge importer: /wingpro7/bin/dbg/src
Added dir /wingpro7/bin/dbg/src for
Added dir /wingpro7/bin/dbg/src/__pycache__ for __pycache__.
Added dir /wingpro7/bin/dbg/src/debug for debug.
Added dir /wingpro7/bin/dbg/src/debug/tserver for debug.tserver.
Added dir /wingpro7/bin/dbg/src/debug/tserver/__os__ for debug.tserver.__os__.
Added dir /wingpro7/bin/dbg/src/debug/tserver/__os__/win32 for debug.tserver.__os__.win32.
Added dir /wingpro7/bin/dbg/src/debug/tserver/__os__/osx for debug.tserver.__os__.osx.
Added dir /wingpro7/bin/dbg/src/wingbase for wingbase.
Added dir /wingpro7/bin/dbg/src/wingbase/__os__ for wingbase.__os__.
Added dir /wingpro7/bin/dbg/src/wingbase/__os__/win32 for wingbase.__os__.win32.
Added dir /wingpro7/bin/dbg/src/wingbase/__os__/osx for wingbase.__os__.osx.
Added dir /wingpro7/bin/dbg/src/wingbase/__pycache__ for wingbase.__pycache__.
Added dir /wingpro7/bin/dbg/src/wingbase/pexpect for wingbase.pexpect.
Added dir /wingpro7/bin/dbg/src/wingbase/pexpect/ptyprocess for wingbase.pexpect.ptyprocess.
Added dir /wingpro7/bin/dbg/src/debug/tserver/__os__/linux-x64 for debug.tserver.
Added dir /wingpro7/bin/dbg/src/wingbase/__os__/linux-x64 for wingbase.
Adding code directory to merge importer: /wingpro7/src
Added dir /wingpro7/src for
Added dir /wingpro7/src/testing for testing.
Added dir /wingpro7/src/testing/runners for testing.runners.
Added dir /wingpro7/src/wingutils for wingutils.
Added dir /wingpro7/src/debug for debug.
Added dir /wingpro7/src/debug/tserver for debug.tserver.
Added dir /wingpro7/src/debug/tserver/__pycache__ for debug.tserver.__pycache__.
Added dir /wingpro7/src/debug/__pycache__ for debug.__pycache__.
Added dir /wingpro7/src/debug/client for debug.client.
Added dir /wingpro7/src/external for external.
Added dir /wingpro7/src/external/pygments for external.pygments.
Added dir /wingpro7/src/external/pygments/pygments for external.pygments.pygments.
Added dir /wingpro7/src/external/pygments/pygments/formatters for external.pygments.pygments.formatters.
Added dir /wingpro7/src/external/pygments/pygments/lexers for external.pygments.pygments.lexers.
Added dir /wingpro7/src/external/pygments/pygments/filters for external.pygments.pygments.filters.
Added dir /wingpro7 ...
Comments