Is there a tweak that allows me to see code being processed by my phone?

Is there a tweak that allows me to see code being processed by my phone? Like if i press a button in a game it tells me what code the button ran? I saw someone using one, it was like a bunch of scrolling text on the corner of the screen. My goal is to see what happens behind the scenes when i press a button on this one game that i have so i can find the right variable and change it. Also, my device IS jailbroken.
Thanks in advance for any help! 🙃
I'm not aware of any such tweak or app, but hopefully, someone who does will reply soon....🙂

Original thread: https://forums.imore.com/threads/is-there-a-tweak-that-allows-me-to-see-code-being-processed-by-my-phone.371352/