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

Function fxDebugParseTag

xs/sources/xsDebug.c:963–1017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

961}
962
963void fxDebugParseTag(txMachine* the, txString name)
964{
965 if (!c_strcmp(name, "abort"))
966 the->debugTag = XS_ABORT_TAG;
967 else if (!c_strcmp(name, "breakpoint")) {
968 the->debugTag = XS_BREAKPOINT_TAG;
969 the->idValue = 0;
970 }
971 else if (!c_strcmp(name, "breakpoint-condition"))
972 the->debugTag = XS_BREAKPOINT_CONDITION_TAG;
973 else if (!c_strcmp(name, "breakpoint-hit-count"))
974 the->debugTag = XS_BREAKPOINT_HIT_COUNT_TAG;
975 else if (!c_strcmp(name, "breakpoint-trace"))
976 the->debugTag = XS_BREAKPOINT_TRACE_TAG;
977 else if (!c_strcmp(name, "clear-all-breakpoints"))
978 the->debugTag = XS_CLEAR_ALL_BREAKPOINTS_TAG;
979 else if (!c_strcmp(name, "clear-breakpoint"))
980 the->debugTag = XS_CLEAR_BREAKPOINTS_TAG;
981 else if (!c_strcmp(name, "eval"))
982 the->debugTag = XS_EVAL_TAG;
983 else if (!c_strcmp(name, "go"))
984 the->debugTag = XS_GO_TAG;
985 else if (!c_strcmp(name, "logout"))
986 the->debugTag = XS_LOGOUT_TAG;
987 else if (!c_strcmp(name, "select"))
988 the->debugTag = XS_SELECT_TAG;
989 else if (!c_strcmp(name, "set-all-breakpoints"))
990 the->debugTag = XS_SET_ALL_BREAKPOINTS_TAG;
991 else if (!c_strcmp(name, "set-breakpoint")) {
992 the->debugTag = XS_SET_BREAKPOINT_TAG;
993 the->idValue = 0;
994 }
995 else if (!c_strcmp(name, "start-profiling"))
996 the->debugTag = XS_START_PROFILING_TAG;
997 else if (!c_strcmp(name, "step"))
998 the->debugTag = XS_STEP_TAG;
999 else if (!c_strcmp(name, "step-inside"))
1000 the->debugTag = XS_STEP_INSIDE_TAG;
1001 else if (!c_strcmp(name, "step-outside"))
1002 the->debugTag = XS_STEP_OUTSIDE_TAG;
1003 else if (!c_strcmp(name, "stop-profiling"))
1004 the->debugTag = XS_STOP_PROFILING_TAG;
1005 else if (!c_strcmp(name, "toggle"))
1006 the->debugTag = XS_TOGGLE_TAG;
1007#if MODDEF_XS_XSBUG_HOOKS
1008 else if (!c_strcmp(name, "import"))
1009 the->debugTag = XS_IMPORT_TAG;
1010 else if (!c_strcmp(name, "module"))
1011 the->debugTag = XS_MODULE_TAG;
1012 else if (!c_strcmp(name, "script"))
1013 the->debugTag = XS_SCRIPT_TAG;
1014#endif
1015 else
1016 the->debugTag = XS_UNKNOWN_TAG;
1017}
1018
1019void fxDebugPopTag(txMachine* the)
1020{

Callers 1

fxDebugParseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected