How can I see what line of my code is moving my object?

I have a fairly long script that has all kinds of different methods for movement and so on. The problem I’m having is that my object keeps moving on it’s own upwards and I can’t figure out what line/method is causing that, I know I could debug all day and probably find it, but I don’t have time for that so if anyone knows of any method like debug.log that would display what line is moving the object or something. If someone wants to see the script and is willing to help me I will show it.

Ok as it turns out its totally not my scripts it is the rigidbody any suggestions how to stop it from moving my object? :I

Hi, is “use gravity” ckecked on your rigidbody Component?