Even the "best" library . Proteus cannot emulate over-the-air signals. If your code hangs on WiFi.begin() , your simulation will freeze. You must mock your Wi-Fi code using #ifdef SIMULATION flags.
After testing and community feedback, these are the top two reliable options: esp32 library proteus best