Fix locals not showing with mago-mi.exe on Windows. Issue #192

This commit is contained in:
Siemargl 2020-09-16 16:24:43 +03:00
parent c566de2633
commit d2593f2b33
1 changed files with 8 additions and 0 deletions

View File

@ -144,6 +144,14 @@ DebugThreadList parseThreadList(MIValue params) {
res.threads ~= t;
}
}
// Workaround for answer threads=[]
if (res.length == 0)
{
auto mainTh = new DebugThread();
mainTh.id = res.currentThreadId;
mainTh.name = "Single";
res.threads ~= mainTh;
}
return res;
}