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

Function doDebugCommand

xs/platforms/nrf52/xsPlatform.c:381–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379}
380
381void doDebugCommand(void *machine, void *refcon, uint8_t *message, uint16_t messageLength)
382{
383 txMachine* the = machine;
384
385 the->debugNotifyOutstanding = false;
386 if ((txSocket)NULL == the->connection)
387 return;
388 else if ((txSocket)kSerialConnection == the->connection) {
389 if (!the->debugFragments)
390 return;
391 }
392 else {
393 if (!the->readers[0])
394 return;
395 }
396
397 fxDebugCommand(the);
398 if (the->breakOnStartFlag) {
399 fxBeginHost(the);
400 fxDebugger(the, (char *)__FILE__, __LINE__);
401 fxEndHost(the);
402 }
403}
404
405void fxReceiveLoop(void)
406{

Callers

nothing calls this directly

Calls 4

fxDebugCommandFunction · 0.85
fxBeginHostFunction · 0.85
fxDebuggerFunction · 0.85
fxEndHostFunction · 0.85

Tested by

no test coverage detected