Hi Atharv,
thanks for testing. That's the problem, its not working in 2024R1 for me. The Debugger does not stop. Please, see the screen record gif below.
2023R1 seems to be fine for this code.
The problem is already reported via our local channel partner to ANSYS.
Thanks Christian