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

Function fxDebugImport

xs/sources/xsDebug.c:489–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487
488#if MODDEF_XS_XSBUG_HOOKS
489void fxDebugImport(txMachine* the, txSlot* module, txString path)
490{
491 if (!fxIsConnected(the))
492 return;
493 fxEchoStart(the);
494 fxEcho(the, "<import path=\"");
495 fxEcho(the, path + 8);
496 fxEcho(the, "\"/>");
497 fxEchoStop(the);
498 the->debugExit = 0;
499 the->debugModule = module;
500 while (fxIsConnected(the)) {
501 fxReceive(the);
502 fxDebugParse(the);
503 if ((the->debugState == XS_LF_STATE) && (the->debugExit > 1))
504 break;
505 }
506 if (the->debugTag == XS_MODULE_TAG){
507 mxRunCount(6);
508 mxPop();
509 }
510}
511#endif
512
513void fxDebugLine(txMachine* the, txID path, txInteger line, txID function)

Callers 3

fxLoadModuleFunction · 0.85
fxLoadModuleFunction · 0.85
fxLoadModuleFunction · 0.85

Calls 6

fxEchoStartFunction · 0.85
fxEchoFunction · 0.85
fxEchoStopFunction · 0.85
fxDebugParseFunction · 0.85
fxIsConnectedFunction · 0.70
fxReceiveFunction · 0.70

Tested by

no test coverage detected