I tried running an Odoo 15 (multi-threaded) application and previously I was able to see that VSCode properly tracked all spawned thread.
However yesterday when I tried to debug my application, I noticed that my breakpoints on code that was supposed to be run on spawned threads weren't hitting (main thread is fine).
After looking at the call stack window, I noticed that what used to be a list of threads are now showing nothing as if there's only 1 thread running.
Figure 1. Call stack on my Odoo program
So I'm wondering that it has something to do with my VSCode settings, but I'm drawing a blank on which. Interestingly, on my colleague's Linux machine, he can debug and see all the threads fine with VSCode
I've tried to do a clean uninstallation of VSCode and re-installed all extensions manually, but to no avail.
Interestingly, I tried writing a simple threaded program (with threading lib, same as Odoo's) and the call stack showed the multiple threads fine, so I'm lost as of why
Figure 2. Call stack on my simple threaded programs
Turns out I have an entry in my .env GEVENT_SUPPORT=True.
Once I erased that flag, everything works normal