1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-06-29 09:20:38 +00:00

Add temporary error reporting through the console.

This commit is contained in:
FellippeHeitor 2021-09-29 20:11:33 -03:00
parent d525c5b751
commit 17686ee09c

View file

@ -13265,6 +13265,22 @@ E = 1
RESUME NEXT
qberror:
'_CONSOLE ON
'_ECHO "A QB error has occurred (and you have compiled in debugging support)."
'_ECHO "Some key information (qb64.bas):"
'_ECHO "Error" + STR$(ERR)
'_ECHO "Description: " + _ERRORMESSAGE$
'_ECHO "Line" + STR$(_ERRORLINE)
'IF _INCLERRORLINE THEN
' _ECHO "Included line" + STR$(_INCLERRORLINE)
' _ECHO "Included file " + _INCLERRORFILE$
'END IF
'_ECHO ""
'_ECHO "Loaded source file details:"
'_ECHO "ideerror =" + STR$(ideerror) + "; qberrorhappened =" + STR$(qberrorhappened) + "; qberrorhappenedvalue =" + STR$(qberrorhappenedvalue) + "; linenumber =" + STR$(linenumber)
'_ECHO "ca$ = {" + ca$ + "}, idecommand$ = {" + idecommand$ + "}"
'_ECHO "linefragment = {" + linefragment+ "}"
IF Debug THEN 'A more in-your-face error handler
IF ConsoleMode THEN
PRINT