DEBUG ">" + very_long_string_indeed$ + "<"

Previous topic - Next topic

Moru

I just stumbled onto this code that crashes GLBasic, not just my program. Seems DEBUG is limited to 255 characters per line? It will output the complete line in the debug-window but then you get the nice "the program has crashed" message.

Code (glbasic) Select
a$ = "a string that is 252 characters long... cut out for convenience :-)"
DEBUG LEN(a$) + "\n"     // Just to make sure the length is right
DEBUG a$ + "<\n"         // Three more characters makes it 255 total
END


No showstopper, just informing :-)

Kitty Hello

Very bad. I've no such limit. I cut strings at 1023 characters, though - but no crash.