MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / modDebugBreak

Function modDebugBreak

xs/platforms/mc/xsHosts.c:648–660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646#ifdef mxDebug
647
648void modDebugBreak(xsMachine* the, uint8_t stop)
649{
650 if (stop) {
651 the->DEBUG_LOOP = 1;
652 fxCollectGarbage(the);
653 modInstrumentationAdjust(GarbageCollectionCount, -1);
654 ((modTimerCallback)the->instrumentationCallback)(NULL, &the, sizeof(the));
655 }
656 else {
657 the->DEBUG_LOOP = 0;
658 modTimerReschedule(the->instrumentationTimer, 1000, 1000);
659 }
660}
661
662#endif
663

Callers

nothing calls this directly

Calls 2

fxCollectGarbageFunction · 0.85
modTimerRescheduleFunction · 0.50

Tested by

no test coverage detected