MCPcopy Create free account
hub / github.com/Singular/Singular / iiDebug

Function iiDebug

Singular/ipshell.cc:1064–1084  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1062VAR BOOLEAN iiDebugMarker=TRUE;
1063#define BREAK_LINE_LENGTH 80
1064void iiDebug()
1065{
1066#ifdef HAVE_SDB
1067 sdb_flags=1;
1068#endif
1069 Print("\n-- break point in %s --\n",VoiceName());
1070 if (iiDebugMarker) VoiceBackTrack();
1071 char * s;
1072 iiDebugMarker=FALSE;
1073 s = (char *)omAlloc(BREAK_LINE_LENGTH+4);
1074 loop
1075 {
1076 memset(s,0,BREAK_LINE_LENGTH+4);
1077 fe_fgets_stdin("",s,BREAK_LINE_LENGTH);
1078 if (s[BREAK_LINE_LENGTH-1]!='\0')
1079 {
1080 Print("line too long, max is %d chars\n",BREAK_LINE_LENGTH);
1081 }
1082 else
1083 break;
1084 }
1085 if (*s=='\n')
1086 {
1087 iiDebugMarker=TRUE;

Callers 1

grammar.ccFile · 0.85

Calls 3

VoiceNameFunction · 0.85
VoiceBackTrackFunction · 0.85
PrintFunction · 0.50

Tested by

no test coverage detected