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/src/external/pygments/pygments/styles for external.pygments.pygments.styles.
debug data: 192.168.1.80 50005 50015
wingdbg - 2020/03/22 12:15:07 - 1 - 'netserver CLOSECHANNEL'
wingdbg - 2020/03/22 12:15:07 - 1 - 'Bound attach listener to port' 50015
about to start!
wingdbg - 2020/03/22 12:15:07 - 1 - '******************** START DEBUG ************************'
wingdbg - 2020/03/22 12:15:07 - 1 - 'ABOUT TO INIT'
INIT CORE
********************* INSTALLING TRACE HOOK ***********************
********************* DONE INSTALLING TRACE HOOK ***********************
DONE WITH INIT DBGTRACER
wingdbg - 2020/03/22 12:15:07 - 1 - 'SET UP C CORE'
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'wingbase' (<mergeimporter.CMergeDirImporter object at 0x7fd74ffdec50>)> '; ' "'/wingpro7/bin/dbg/src/wingbase/__init__.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'wingbase.py3utils' (<mergeimporter.CMergeDirImporter object at 0x7fd74ffdec50>)> '; ' "'/wingpro7/bin/dbg/src/wingbase/py3utils.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'wingbase.pyutils' (<mergeimporter.CMergeDirImporter object at 0x7fd74ffdec50>)> '; ' "'/wingpro7/bin/dbg/src/wingbase/pyutils.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'wingbase.updateutils' from '/wingpro7/bin/dbg/src/wingbase/updateutils.py'> '; ' "'/wingpro7/bin/dbg/src/wingbase/updateutils.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'wingbase.fileutils' (<mergeimporter.CMergeDirImporter object at 0x7fd74ffdec50>)> '; ' "'/wingpro7/bin/dbg/src/wingbase/fileutils.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'wingbase.miscutils' (<mergeimporter.CMergeDirImporter object at 0x7fd74ffdec50>)> '; ' "'/wingpro7/bin/dbg/src/wingbase/miscutils.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'debug.tserver' from '/wingpro7/src/debug/tserver/__init__.py'> '; ' "'/wingpro7/src/debug/tserver/__init__.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'debug.tserver.findmodules' (<mergeimporter.CMergeDirImporter object at 0x7fd74ffdec50>)> '; ' "'/wingpro7/bin/dbg/src/debug/tserver/findmodules.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'debug.tserver.constants' (<mergeimporter.CMergeDirImporter object at 0x7fd74ffdec50>)> '; ' "'/wingpro7/bin/dbg/src/debug/tserver/constants.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'debug.tserver.abstract' (<mergeimporter.CMergeDirImporter object at 0x7fd74ffdec50>)> '; ' "'/wingpro7/bin/dbg/src/debug/tserver/abstract.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'debug.tserver.startdebug' (<mergeimporter.CMergeDirImporter object at 0x7fd74ffdec50>)> '; ' "'/wingpro7/bin/dbg/src/debug/tserver/startdebug.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'debug.tserver._extensions' from '/wingpro7/src/debug/tserver/_extensions.py'> '; ' "'/wingpro7/src/debug/tserver/_extensions.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'debug.tserver.dbgutils' (<mergeimporter.CMergeDirImporter object at 0x7fd74ffdec50>)> '; ' "'/wingpro7/bin/dbg/src/debug/tserver/dbgutils.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'debug.tserver._django' from '/wingpro7/src/debug/tserver/_django.py'> '; ' "'/wingpro7/src/debug/tserver/_django.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'debug.tserver._gtkhooks' from '/wingpro7/src/debug/tserver/_gtkhooks.py'> '; ' "'/wingpro7/src/debug/tserver/_gtkhooks.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'debug.tserver._tkinterhooks' from '/wingpro7/src/debug/tserver/_tkinterhooks.py'> '; ' "'/wingpro7/src/debug/tserver/_tkinterhooks.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'debug.tserver._wxhooks' from '/wingpro7/src/debug/tserver/_wxhooks.py'> '; ' "'/wingpro7/src/debug/tserver/_wxhooks.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'debug.tserver._wx25hooks' from '/wingpro7/src/debug/tserver/_wx25hooks.py'> '; ' "'/wingpro7/src/debug/tserver/_wx25hooks.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'debug.tserver.extregistry' (<mergeimporter.CMergeDirImporter object at 0x7fd74ffdec50>)> '; ' "'/wingpro7/bin/dbg/src/debug/tserver/extregistry.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'debug.tserver.dbginspect' (<mergeimporter.CMergeDirImporter object at 0x7fd74ffdec50>)> '; ' "'/wingpro7/bin/dbg/src/debug/tserver/dbginspect.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'debug.tserver.dbgserver' (<mergeimporter.CMergeDirImporter object at 0x7fd74ffdec50>)> '; ' "'/wingpro7/bin/dbg/src/debug/tserver/dbgserver.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'debug.tserver.netserver' (<mergeimporter.CMergeDirImporter object at 0x7fd74ffdec50>)> '; ' "'/wingpro7/bin/dbg/src/debug/tserver/netserver.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'debug.tserver._matplotlib' from '/wingpro7/src/debug/tserver/_matplotlib.py'> '; ' "'/wingpro7/src/debug/tserver/_matplotlib.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'debug.tserver._gtkhooks' from '/wingpro7/src/debug/tserver/_gtkhooks.py'> '; ' "'/wingpro7/src/debug/tserver/_gtkhooks.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'debug.tserver._zopehooks' from '/wingpro7/src/debug/tserver/_zopehooks.py'> '; ' "'/wingpro7/src/debug/tserver/_zopehooks.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'debug.tserver._tkinterhooks' from '/wingpro7/src/debug/tserver/_tkinterhooks.py'> '; ' "'/wingpro7/src/debug/tserver/_tkinterhooks.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'debug.tserver._wxhooks' from '/wingpro7/src/debug/tserver/_wxhooks.py'> '; ' "'/wingpro7/src/debug/tserver/_wxhooks.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'debug.tserver._wx25hooks' from '/wingpro7/src/debug/tserver/_wx25hooks.py'> '; ' "'/wingpro7/src/debug/tserver/_wx25hooks.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'debug.tserver._django' from '/wingpro7/src/debug/tserver/_django.py'> '; ' "'/wingpro7/src/debug/tserver/_django.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'Registering internal module: ' <module 'wingdb' from '/wingpro7/bootstrap/wingdb.py'> '; ' "'/wingpro7/bootstrap/wingdb.py'"
wingdbg - 2020/03/22 12:15:07 - 1 - 'RESET'
RESET REACHED
in __tracer_stop_trace()
wingdbg - 2020/03/22 12:15:07 - 1 - 'Acquiring dbgserver mutex in RunWithDbgServerMutex for <function CDbgServer._CB_InstallStartThreadHooks at 0x7fd74ff58050>'
wingdbg - 2020/03/22 12:15:07 - 1 - 'Releasing dbgserver mutex in RunWithDbgServerMutex'
RESET THREAD TABLE
wingdbg - 2020/03/22 12:15:07 - 1 - 'setting __fClient to' <debug.tserver.netserver.CNetworkServer object at 0x7fd7505de610>
wingdbg - 2020/03/22 12:15:07 - 1 - 'RESET'
RESET REACHED
in __tracer_stop_trace()
wingdbg - 2020/03/22 12:15:07 - 1 - 'Acquiring dbgserver mutex in RunWithDbgServerMutex for <function CDbgServer._CB_InstallStartThreadHooks at 0x7fd74ff58050>'
wingdbg - 2020/03/22 12:15:07 - 1 - 'Releasing dbgserver mutex in RunWithDbgServerMutex'
RESET THREAD TABLE
wingdbg - 2020/03/22 12:15:07 - 1 - 'Acquiring dbgserver mutex in RunWithDbgServerMutex for <function CNetworkServer.__ConnectToClient at 0x7fd74ff58050>'
wingdbg - 2020/03/22 12:15:07 - 1 - 'Connecting to client 192.168.1.80:50005...'
wingdbg - 2020/03/22 12:17:17 - 1 - 'Could not connect to debug client'
wingdbg - 2020/03/22 12:17:17 - 1 - 'Runtime failure details:'
wingdbg - 2020/03/22 12:17:17 - 1 - "Exception: <class 'TimeoutError'>"
wingdbg - 2020/03/22 12:17:17 - 1 - 'Value = [Errno 110] Connection timed out'
wingdbg - 2020/03/22 12:17:17 - 1 - 'Traceback (innermost last):'
wingdbg - 2020/03/22 12:17:17 - 1 - ' File "/wingpro7/bin/dbg/src/debug/tserver/netserver.py", line 1962, in __ConnectToClient\n'
wingdbg - 2020/03/22 12:17:17 - 1 - ' File "/wingpro7/bin/dbg/src/wingbase/channel.py", line 564, in Connect\n'
wingdbg - 2020/03/22 12:17:17 - 1 - ' File "/wingpro7/bin/dbg/src/wingbase/channel.py", line 543, in new_connected_socket\n'
wingdbg - 2020/03/22 12:17:17 - 1 - 'netserver CLOSECHANNEL'
wingdbg - 2020/03/22 12:17:17 - 1 - 'Starting non-client run'
wingdbg - 2020/03/22 12:17:17 - 1 - 'Releasing dbgserver mutex in RunWithDbgServerMutex'
wingdbg - 2020/03/22 12:17:17 - 1 - 'STARTING DEBUG'
wingdbg - 2020/03/22 12:17:17 - 1 - '__CheckFloatingPointMode'
wingdbg - 2020/03/22 12:17:17 - 1 - 'RESET'
wingdbg - 2020/03/22 12:17:17 - 1 - 'installed breakpointhook'
START TRACING
INITIAL MODULE SCAN: 38 PREVIOUSLY LOADED MODULESMODULE RELOAD DETECTION: /app/wingdbstub.py
ADDED TO MODULE LIST
MODULE RELOAD DETECTION: /app/app.py
ADDED TO MODULE LIST
inserting into thread state 0x56041a1df950; frame = 0x7fd74fb35e50
inserting into thread state 0x56041a1df950; frame = 0x7fd750001b90
inserting into thread state 0x56041a1df950; frame = 0x7fd750964050
inserting into thread state 0x56041a1df950; frame = 0x7fd750a0a3d0
inserting into thread state 0x56041a1df950; frame = 0x7fd750a53960
inserting into thread state 0x56041a1df950; frame = 0x7fd750997240
inserting into thread state 0x56041a1df950; frame = 0x56041a212630
inserting into thread state 0x56041a1df950; frame = 0x7fd7509aa650
inserting into thread state 0x56041a1df950; frame = 0x56041a22fd90
Setting f_trace in frame 0x7fd74fb35e50 to 0x(nil)
Setting f_trace in frame 0x7fd750001b90 to 0x(nil)
Setting f_trace in frame 0x7fd750964050 to 0x(nil)
Setting f_trace in frame 0x7fd750a0a3d0 to 0x(nil)
Setting f_trace in frame 0x7fd750a53960 to 0x(nil)
Setting f_trace in frame 0x7fd750997240 to 0x(nil)
Setting f_trace in frame 0x56041a212630 to 0x(nil)
Setting f_trace in frame 0x7fd7509aa650 to 0x(nil)
Setting f_trace in frame 0x56041a22fd90 to 0x(nil)
wingdbg - 2020/03/22 12:17:17 - 1 - '_CB_DebugThread called with thread_id =' 94575618029904
wingdbg - 2020/03/22 12:17:17 - 1 - 'TState ID policies are:' {}
wingdbg - 2020/03/22 12:17:17 - 1 - 'Thread Ident policies are:' {}
wingdbg - 2020/03/22 12:17:17 - 1 - 'Thread Ident is:' 140562749986624
wingdbg - 2020/03/22 12:17:17 - 1 - '_CB_DebugThread returning' 1
in call: name = wrapper, lineno = 4032, locals = 0x(nil), globals = 0x7fd74fee8370, thread = 140562749986624
Setting f_trace in frame 0x7fd74fa6f050 to 0x(nil)
in call: name = wraps, lineno = 67, locals = 0x(nil), globals = 0x7fd7505f3050, thread = 140562749986624
Setting f_trace in frame 0x56041a288ca0 to 0x(nil)
Not stopping here because stop_frame == NULL
in call: name = update_wrapper, lineno = 37, locals = 0x(nil), globals = 0x7fd7505f3050, thread = 140562749986624
Setting f_trace in frame 0x56041a2eb660 to 0x(nil)
Calling idle cb
wingdbg - 2020/03/22 12:17:17 - 1 - 'CHECK FOR CONNECTION'
wingdbg - 2020/03/22 12:17:17 - 1 - 'LISTENER INFO:' ('0.0.0.0', 50015)
wingdbg - 2020/03/22 12:17:17 - 1 - 'SELECT RESULT' [] [] []
wingdbg - 2020/03/22 12:17:17 - 1 - 'CONTINUE'
Setting f_trace in frame 0x7fd74f591560 to 0x(nil)
Setting f_trace in frame 0x56041a4c0800 to 0x(nil)
Setting f_trace in frame 0x7fd74fb2d5c0 to 0x(nil)
Setting f_trace in frame 0x7fd74fb38210 to 0x(nil)
Setting f_trace in frame 0x56041a2eb660 to 0x(nil)
Setting f_trace in frame 0x7fd74fa6f050 to 0x(nil)
Setting f_trace in frame 0x7fd74fb35e50 to 0x(nil)
Setting f_trace in frame 0x7fd750001b90 to 0x(nil)
Setting f_trace in frame 0x7fd750964050 to 0x(nil)
Setting f_trace in frame 0x7fd750a0a3d0 to 0x(nil)
Setting f_trace in frame 0x7fd750a53960 to 0x(nil)
Setting f_trace in frame 0x7fd750997240 to 0x(nil)
Setting f_trace in frame 0x56041a212630 to 0x(nil)
Setting f_trace in frame 0x7fd7509aa650 to 0x(nil)
Setting f_trace in frame 0x56041a22fd90 to 0x(nil)
in dispatch_line: file=/usr/local/lib/python3.7/functools.py, lineno=53
Not stopping here because stop_frame == NULL
Not stopping here because stop_frame == NULL
in call: name = RunWithDbgServerMutex, lineno = 4002, locals = 0x(nil), globals = 0x7fd74fee8370, thread = 140562749986624
Setting f_trace in frame 0x7fd74fa2a240 to 0x(nil)
wingdbg - 2020/03/22 12:17:17 - 1 - 'Acquiring dbgserver mutex in RunWithDbgServerMutex for <function CDbgServer._CB_InstallStartThreadHooks at 0x7fd74ff58050>'
wingdbg - 2020/03/22 12:17:17 - 1 - 'Releasing dbgserver mutex in RunWithDbgServerMutex'
Not stopping here because stop_frame == NULL
Not stopping here because stop_frame == NULL
Succeeded to set eval_frame function
Not stopping here because stop_frame == NULL
Not stopping here because stop_frame == NULL
started!
in call: name = __setitem__, lineno = 684, locals = 0x(nil), globals = 0x7fd750994a50, thread = 140562749986624
Setting f_trace in frame 0x56041a28ba80 to 0x(nil)
in call: name = encode, lineno = 754, locals = 0x(nil), globals = 0x7fd750994a50, thread = 140562749986624
Setting f_trace in frame 0x7fd75093e210 to 0x(nil)
Not stopping here because stop_frame == NULL
in call: name = encode, lineno = 754, locals = 0x(nil), globals = 0x7fd750994a50, thread = 140562749986624
Setting f_trace in frame 0x7fd75093e210 to 0x(nil)
Not stopping here because stop_frame == NULL
Not stopping here because stop_frame == NULL
in call: name = ChannelClosed, lineno = 1126, locals = 0x(nil), globals = 0x7fd74fed8140, thread = 140562749986624
Setting f_trace in frame 0x7fd74fb33560 to 0x(nil)
Not stopping here because stop_frame == NULL
---EXCEPTION---
Not stopping here because stop_frame == NULL
stop_at_exception_no_filters
find_catch_info
null info_list; looking for <module>
frame_prints_exccatch_info == NULL
set_frame_exc_info
find_catch_info
null info_list; looking for <module>
Not stopping here because stop_frame == NULL
---EXCEPTION---
Not stopping here because stop_frame == NULL
stop_at_exception_no_filters
find_catch_info
null info_list; looking for _call_with_frames_removed
frame_prints_exccatch_info == NULL
set_frame_exc_info
find_catch_info
null info_list; looking for _call_with_frames_removed
Not stopping here because stop_frame == NULL
---EXCEPTION---
Not stopping here because stop_frame == NULL
stop_at_exception_no_filters
find_catch_info
null info_list; looking for exec_module
frame_prints_exccatch_info == NULL
set_frame_exc_info
find_catch_info
null info_list; looking for exec_module
Not stopping here because stop_frame == NULL
---EXCEPTION---
Not stopping here because stop_frame == NULL
stop_at_exception_no_filters
find_catch_info
null info_list; looking for _load_unlocked
frame_prints_exccatch_info == NULL
set_frame_exc_info
in call: name = __exit__, lineno = 318, locals = 0x(nil), globals = 0x7fd750a7d0f0, thread = 140562749986624
Setting f_trace in frame 0x7fd750a89240 to 0x(nil)
in call: name = <genexpr>, lineno = 321, locals = 0x(nil), globals = 0x7fd750a7d0f0, thread = 140562749986624
Setting f_trace in frame 0x7fd750a83e50 to 0x(nil)
Not stopping here because stop_frame == NULL
in call: name = <genexpr>, lineno = 321, locals = 0x(nil), globals = 0x7fd750a7d0f0, thread = 140562749986624
Setting f_trace in frame 0x7fd750a83e50 to 0x(nil)
---EXCEPTION---
Not stopping here because stop_frame == NULL
stop_at_exception_no_filters
find_catch_info
null info_list; looking for <genexpr>
frame_prints_exccatch_info == NULL
set_frame_exc_info
find_catch_info
null info_list; looking for <genexpr>
Not stopping here because stop_frame == NULL
Not stopping here because stop_frame == NULL
find_catch_info
null info_list; looking for _load_unlocked
Not stopping here because stop_frame == NULL
---EXCEPTION---
Not stopping here because stop_frame == NULL
stop_at_exception_no_filters
find_catch_info
null info_list; looking for _find_and_load_unlocked
frame_prints_exccatch_info == NULL
set_frame_exc_info
find_catch_info
null info_list; looking for _find_and_load_unlocked
Not stopping here because stop_frame == NULL
---EXCEPTION---
Not stopping here because stop_frame == NULL
stop_at_exception_no_filters
find_catch_info
null info_list; looking for _find_and_load
frame_prints_exccatch_info == NULL
set_frame_exc_info
in call: name = __exit__, lineno = 151, locals = 0x(nil), globals = 0x7fd750a7d0f0, thread = 140562749986624
Setting f_trace in frame 0x7fd750a8d210 to 0x(nil)
in call: name = release, lineno = 103, locals = 0x(nil), globals = 0x7fd750a7d0f0, thread = 140562749986624
Setting f_trace in frame 0x7fd750a89810 to 0x(nil)
Not stopping here because stop_frame == NULL
Not stopping here because stop_frame == NULL
in call: name = cb, lineno = 176, locals = 0x(nil), globals = 0x7fd750a7d0f0, thread = 140562749986624
Setting f_trace in frame 0x7fd750aacb90 to 0x(nil)
Not stopping here because stop_frame == NULL
find_catch_info
null info_list; looking for _find_and_load
Not stopping here because stop_frame == NULL
---EXCEPTION---
Not stopping here because stop_frame == NULL
stop_at_exception_no_filters
leaving bottom frame
dispatched=TRUE
wingdbg - 2020/03/22 12:17:17 - 1 - 'USER EXCEPTION'
wingdbg - 2020/03/22 12:17:17 - 1 - 'ValueError:' 'Not connected'
wingdbg - 2020/03/22 12:17:17 - 1 - 'Traceback:'
wingdbg - 2020/03/22 12:17:17 - 1 - ' File "app.py", line 1, in <module>\n import wingdbstub'
wingdbg - 2020/03/22 12:17:17 - 1 - ' File "/app/wingdbstub.py", line 315, in <module>\n raise ValueError(\'Not connected\')'
wingdbg - 2020/03/22 12:17:17 - 1 - 'self._fWaitingForCommand=' 0
wingdbg - 2020/03/22 12:17:17 - 1 - "_BlockUntilReadyToRun: <frame at 0x56041a22fd90, file 'app.py', line 1, code <module>>"
wingdbg - 2020/03/22 12:17:17 - 1 - ' filename = app.py, lineno = 1'
wingdbg - 2020/03/22 12:17:17 - 1 - 'USER EXCEPTION IN BLOCKUNTILREADYTORUN'
wingdbg - 2020/03/22 12:17:17 - 1 - 'SENDING PROGRAM STOPPED ON EXCEPTION' <debug.tserver.netserver.CNetworkServer object at 0x7fd7505de610>
wingdbg - 2020/03/22 12:17:17 - 1 - 'NETSERVER PROGRAM STOPPED'
wingdbg - 2020/03/22 12:17:17 - 1 - 'stop_type=FALSE'
wingdbg - 2020/03/22 12:17:17 - 1 - 'THREADS=' [(94575618029904, 'MainThread', 0)]
wingdbg - 2020/03/22 12:17:17 - 1 - 'CURRENT THREAD=' 94575618029904
wingdbg - 2020/03/22 12:17:17 - 1 - 'STACK =' [(None, ('builtins.ValueError: Not connected', 0), [(('/app/app.py', 1, 'import wingdbstub\n', '<module>', (), 'd09369aa8e2d1d5fa0a2266553b6d7501ecd0905'), 1), (('/app/wingdbstub.py', 319, " raise ValueError('Not connected')\n", '<module>', (), '0819ff3000cf76810957691d5b7e84cbaddda729'), 315)])]
wingdbg - 2020/03/22 12:17:17 - 1 - 'STACKINDEX' (0, 1)
wingdbg - 2020/03/22 12:17:17 - 1 - 'CHECK FOR CONNECTION'
wingdbg - 2020/03/22 12:17:17 - 1 - 'LISTENER INFO:' ('0.0.0.0', 50015)
wingdbg - 2020/03/22 12:17:17 - 1 - 'SELECT RESULT' [] [] []
wingdbg - 2020/03/22 12:17:17 - 1 - 'CHECK FOR CONNECTION'
wingdbg - 2020/03/22 12:17:17 - 1 - 'LISTENER INFO:' ('0.0.0.0', 50015)
wingdbg - 2020/03/22 12:17:17 - 1 - 'SELECT RESULT' [] [] []
wingdbg - 2020/03/22 12:17:17 - 1 - 'CONTINUE'
Setting f_trace in frame 0x7fd74f591560 to 0x(nil)
Setting f_trace in frame 0x56041a4c0800 to 0x(nil)
Setting f_trace in frame 0x56041a33dfb0 to 0x(nil)
Setting f_trace in frame 0x56041a37f110 to 0x(nil)
Setting f_trace in frame 0x56041a22fd90 to 0x(nil)
wingdbg - 2020/03/22 12:17:17 - 1 - 'ProgramQuit called'
wingdbg - 2020/03/22 12:17:17 - 1 - 'STOPPING DEBUG'
STOP TRACE AFTER 45 INSTRUCTIONS
0 IMPORT HOOK CALLS WERE MADE
47 UNIQUE IMPORTS WERE MADE
in __tracer_stop_trace()
wingdbg - 2020/03/22 12:17:17 - 1 - 'RESET'
RESET REACHED
in __tracer_stop_trace()
RESET THREAD TABLE
wingdbg - 2020/03/22 12:17:17 - 1 - 'setting __fClient to' None
wingdbg - 2020/03/22 12:17:17 - 1 - 'RESET'
RESET REACHED
in __tracer_stop_trace()
RESET THREAD TABLE
wingdbg - 2020/03/22 12:17:17 - 1 - <bound method CDbgServer.destroy of <debug.tserver.dbgserver.CDbgServer object at 0x7fd74fee6a10>> 'called'
wingdbg - 2020/03/22 12:17:17 - 1 - 'RESET'
RESET REACHED
in __tracer_stop_trace()
RESET THREAD TABLE
DESTROY REACHED
DESTROY REACHED
in __tracer_stop_trace()
RESET THREAD TABLE
wingdbg - 2020/03/22 12:17:17 - 1 - 'netserver CLOSECHANNEL'
wingdbg - 2020/03/22 12:17:17 - 1 - 'Closing attach listener socket'
wingdbg - 2020/03/22 12:17:17 - 1 - 'EXITING TO RUN'
set_frame_exc_info
Traceback (most recent call last):
File "app.py", line 1, in <module>
import wingdbstub
File "/app/wingdbstub.py", line 315, in <module>
raise ValueError('Not connected')
ValueError: Not connected
Initially, I tried the example with wingide6 but as it didn't work I thought that this feature may not be supported in version 6, so I downloaded the trial wingpro 7 and try it but I get the same problem.
Do you have any suggestions to get this example working?