Problem whith bug

I have a problem with one of my applications. My users get an error message when executing a JS script. I can’t reproduce this error. How can I analyze or intercept this error on the client computer?
Thank you for your help.

Hi! What error do they get? Can you share some screenshots or a screen recording of the error and the code inside the JS function, as well the place where it is called?

I finally managed to solve this problem. I had a store value that was not updating in the processing