Debugging PySide6?

37 views
Skip to first unread message

pjinturin

unread,
Feb 17, 2025, 3:42:51 AMFeb 17
to PyScripter
I've been trying to debug a program that uses PySide6, but Pyscripter would not interrupt execution at any of the breakpoints. In the end I found that just importing a Pyside6 module would impede program interruption thereafter. For example if you put a breakpoint on each of the following lines:

import math
import PySide6.QtWidgets
pass

execution will be interrupted on the first two, but not on the third. 

This also occurs in Idle, and I presume it has something to do with the internal workings of PySide6.  If this is true, is there any way that PySide6 compatibility can be introduced to PyScripter in the same way as for Tk and Wx?
Thanks very much
Piero

PyScripter

unread,
Feb 17, 2025, 6:16:30 AMFeb 17
to PyScripter
For the time being, to debug with PySide6 use python <= 3.12.  Please confirm breakpoints work.
PySide6 interferes with sys.monitoring used with python 3.13 debugger.   I will need to investigate further.

pjinturin

unread,
Feb 17, 2025, 6:31:57 AMFeb 17
to PyScripter
OK, thanks, I'll check 3.12. In the meantime I have noticed that PyQt6 doesn't suffer from the same issue with 3.13.
Piero

PyScripter

unread,
Feb 17, 2025, 6:35:04 AMFeb 17
to PyScripter
OK, thanks, I'll check 3.12. In the meantime I have noticed that PyQt6 doesn't suffer from the same issue with 3.13.

This is good to know.  Thanks for sharing.
 

pjinturin

unread,
Feb 17, 2025, 9:27:59 AMFeb 17
to PyScripter
I've confirmed that with 3.12 the problem doesn't exist. 
Reply all
Reply to author
Forward
0 new messages