eric ide

Issue400

Classification
Title: Debugger doesn not stop at breakpoints
Type: behavior Product: eric6
Process
Priority: normal    
Status: closed Resolution: out of date
Superseder: Nosy List: detlev, iandall
Assigned to: Keywords:

Created on 2021-07-31.13:55:18 by iandall, last changed by detlev.

Files
File Name Uploaded Description Remove
break-bug.py iandall, 2021-08-04.12:25:46 Simplified breakpoint test script.
fem_beam.py iandall, 2021-07-31.13:55:18 Python 3 source.
Messages (8.0)
msg1513 (view) Author: iandall Date: 2021-08-05.09:09:26
Using 21.7 solves the problem. Thanks.
msg1512 (view) Author: detlev Date: 2021-08-04.17:13:54
Can you try with a more recent eric version? Your installation is of January 2020 
and is one and a half years old. Please try 21.7, which is the latest release.
msg1511 (view) Author: iandall Date: 2021-08-04.17:06:58
Also, pdb works on the command line.
msg1510 (view) Author: iandall Date: 2021-08-04.16:40:22
Version Numbers
Python 3.9.6, 64-Bit
Qt 5.15.2
PyQt 5.15.0
PyQtChart 5.15.1
PyQtWebEngine 5.15.0
QScintilla 2.11.5
sip 4.19.24
WebEngine 83.0.4103.122
eric6 20.1 (rev. 7fe343f85860)
msg1509 (view) Author: detlev Date: 2021-08-04.13:45:39
With which Python version does this happen? I just tested your script (thanks for 
it) with Python 3.7.3 and the debugger stops on every breakpoint I set.

Please provide the eric version as well as this could make a difference.
msg1508 (view) Author: iandall Date: 2021-08-04.12:25:46
OK here is simpler script which shows the problem. Set break points in line 4 and line 8. Script doesn't stop at line 4 but does stop at line 8. It is something to do with the multi-line expression.

Interestingly if you also put a breakpoint at line 2, then the program stops at line 2 (twice) then line 4 and then line 5.
msg1504 (view) Author: detlev Date: 2021-08-02.12:46:52
Please provide a script showing the observed behavior but not needing the 
installation of non-standard packages.
msg1503 (view) Author: iandall Date: 2021-07-31.13:55:18
Whether a script being debugged stops at a breakpoint seems arbitrary.

For example with the attached script, if I run with Start->Debug Script, it will stop at the first line, I can single step OK. I can then set breakpoints at line 5 and 32. It will stop OK at line 5 but not at line 32.
History
Date User Action Args
2021-08-05 09:53:31detlevsetstatus: new -> closed
resolution: out of date
2021-08-05 09:09:26iandallsetmessage_count: 7.0 -> 8.0
messages: + msg1513
2021-08-04 17:13:54detlevsetmessage_count: 6.0 -> 7.0
messages: + msg1512
2021-08-04 17:06:58iandallsetmessage_count: 5.0 -> 6.0
messages: + msg1511
2021-08-04 16:40:22iandallsetmessage_count: 4.0 -> 5.0
messages: + msg1510
2021-08-04 13:45:39detlevsetmessage_count: 3.0 -> 4.0
messages: + msg1509
2021-08-04 12:25:46iandallsetfiles: + break-bug.py
message_count: 2.0 -> 3.0
messages: + msg1508
2021-08-02 12:46:52detlevsetmessage_count: 1.0 -> 2.0
nosy: + detlev
messages: + msg1504
2021-07-31 13:55:18iandallcreate