title: Is there any way to debug a Python tkinter application while in the mainloop?
body: <p>I was trying to debug my python tkinter app but I noticed that my debugger just stopped working when it reached tkinter's mainloop() method.</p>
  
  <p>Although my app was working as expected, interacting with it did not seem to update my debugger or variable values. After searching around I found very little information on the topic and that it is not possible to debug a tkinter app while in the mainloop since the core library is written in C. </p>
  
  <p>Surely there must be some workarounds? </p>
  
  <p>At the moment I am finding myself having to debug each and every interaction on my tkinter app manually, which is extremely time confusing and inefficient as my app grows complex. </p>