I'm trying to debug a module of a PyQt5 application using winpdb_reborn.
When I invoke the debugger with the module's name I get an empty winpdb
window and the console tells me that it cannot find RPDBTERM. The full
traceback is attached.

Here, rpdb2 is available:
$ locate rpdb2.py
/usr/lib64/python3.7/site-packages/rpdb2.py
/opt/winpdb-master/build/lib/rpdb2.py
/opt/winpdb-master/rpdb2.py

My only reference to winpdb_reborn is "Norm Matloff's Introduction to the
Winpdb Python Debugging Tool (not just for Windows!)" and the text does not
contain anything about RPDBTERM.

I need advice on debuggng this module (when run only an empty window is
displayed) and using winpdb_reborn.

TIA,

Rich
$ winpdb activitytype.py 
08:20:06.052 rpdb2.py:6148 MainThread/140081468266240 __setrecursionlimit(): rl 
= 1000
08:20:06.348 winpdb.py:3006 MainThread/140081468266240 set_font(): Using font 
"Monospace" for Console
08:20:06.350 winpdb.py:3006 MainThread/140081468266240 set_font(): Using font 
"Monospace" for Console

(winpdb:5519): Gtk-CRITICAL **: gtk_widget_get_preferred_width_for_height: 
assertion 'height >= 0' failed

(winpdb:5519): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate 
widget with width 13 and height -22

(winpdb:5519): Gtk-CRITICAL **: gtk_widget_get_preferred_width_for_height: 
assertion 'height >= 0' failed

(winpdb:5519): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate 
widget with width 13 and height -22

(winpdb:5519): Gtk-CRITICAL **: gtk_widget_get_preferred_width_for_height: 
assertion 'height >= 0' failed

(winpdb:5519): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate 
widget with width 13 and height -22
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

Traceback (most recent call last):
  File "/usr/lib64/python3.7/site-packages/winpdb.py", line 1288, in __wrapper
    self.m_f(*args, **kwargs)
  File "/usr/lib64/python3.7/site-packages/rpdb/session_manager.py", line 197, 
in launch
    return self.__smi.launch(fchdir, command_line, interpreter, 
fload_breakpoints)
  File "/usr/lib64/python3.7/site-packages/rpdb/session_manager.py", line 1160, 
in launch
    self._spawn_server(fchdir, ExpandedFilename, args, rid, interpreter)
  File "/usr/lib64/python3.7/site-packages/rpdb/session_manager.py", line 1269, 
in _spawn_server
    terminal_command = CalcTerminalCommand()
  File "/usr/lib64/python3.7/site-packages/rpdb/session_manager.py", line 2385, 
in CalcTerminalCommand
    if RPDBTERM in os.environ:
NameError: name 'RPDBTERM' is not defined
Traceback (most recent call last):
  File "/usr/lib64/python3.7/site-packages/winpdb.py", line 1288, in __wrapper
    self.m_f(*args, **kwargs)
  File "/usr/lib64/python3.7/site-packages/rpdb/session_manager.py", line 197, 
in launch
    return self.__smi.launch(fchdir, command_line, interpreter, 
fload_breakpoints)
  File "/usr/lib64/python3.7/site-packages/rpdb/session_manager.py", line 1160, 
in launch
    self._spawn_server(fchdir, ExpandedFilename, args, rid, interpreter)
  File "/usr/lib64/python3.7/site-packages/rpdb/session_manager.py", line 1269, 
in _spawn_server
    terminal_command = CalcTerminalCommand()
  File "/usr/lib64/python3.7/site-packages/rpdb/session_manager.py", line 2385, 
in CalcTerminalCommand
    if RPDBTERM in os.environ:
NameError: name 'RPDBTERM' is not defined
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to