Rebol tells the error and the line but it doesn’t say in what source file, is there a way to get this info from a system variable or else (not only the starting script) ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You might achieve that by overloading the DO function (given that all scripts are loaded in memory using DO and not LOAD or READ) to trace the last script executed before the error happens (only required if system/options/quiet is turned off by the library you’re loading, so you don’t see the DO native log line for each loaded script).
Accurately link runtime errors to your source code is not always simple in REBOL. Once loaded in memory, there’s no way to tell the origin (file or url) for any code block. Either find a way to catch it before at loading stage, or use verbose tracing output in console (using TRACE function or often better, with carefully placed PRINTs and/or PROBEs).