It appears that I am getting the same problem reported in this ticket from a few years back:
I did a copy and paste and rename/move of a test script and the resulting files have different script names, but the underlying groovy file names are identical. When you run the code, the code runs the correct script, but the debugger brings up the source for the first file it finds with that groovy file name, which may be a completely different file. I am running Katalon Studio 10.20 on Windows 11 and testing a web application.
Thank you for sharing your issue. Can you please share how you get it working as reference for others. Otherwise, I will let my team know about this. Feel free to add up any further details. Thank you
Rather than doing a copy of an existing test case, I create the new test case and then just cut and paste the script code from the old test case to the new test case. Sometimes you have to go back and find a missing include or two, but it keeps Katalon from creating multiple groovy files with the same name and thus confusing debug. This bug really should be fixed.
We are running the event: [AKA] June 2025 | Katalon Studio that you can feel free to post your question there so our Product Manager of Katalon Studio can support you better. Thank you