You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
debugpy started but not listen on port, so delay some time to wait it initialized.
Log:
Bug: https://pms.uniontech.com/bug-view-315851.html
Change-Id: I14cd10e5b1fcb63a91b38562f9898f71122fbb67
QThread::msleep(500); // The port may not start listening immediately when Python starts, resulting in the IDE being unable to connect. Wait for 500ms.
147
+
148
+
// debugpy may not ready when launched,so we should delay when it start listen port.
149
+
constint maxRetries = 50;
150
+
constint retryInterval = 100;
151
+
bool portReady = false;
152
+
153
+
for (int i = 0; i < maxRetries && !portReady; i++) {
0 commit comments