'Python Application closing without error or exception in VScode debug mode

I am having an issue with a Python application is closing without an error or exception while running in VSCODE in debug mode. My application is multi threaded and talking to a controller on Ethernet continuously. This is happening only when I am calling a particular function once in a while. The function was running smoothly many times before without any problem. I am really stuck on this.

Any thoughts and help are greatly appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source