Breakpoints don't always hit when using Python with Flask

Hi,
I’m using KDevelop 5.10.221202 along with the Python plugin (kdev-python) version 22.12.2-1 on Debian 12.

Sometimes breakpoints do not get hit, especially when using Flask. I’m in debug-mode. I say ‘sometimes’ because the first Python script in the project will work fine with breakpoints, but additional Python scripts in the same project don’t stop on breakpoints.

I’ve only noticed this happening with Flask. My other project which uses Tkinter appears to stop on breakpoints with no issues.

Any ideas?
Thanks.