interpreting error messages - runtime in machine code advice lazarus / 8-Other ---------------------------------------------------------------------- John_Nicol · 2019-03-09 02:25 I find myself very frustrated by the system of error messages which are outside the framework of an error number or clear description and which simply gives a line number in a compiler code   unit or whatever  Such notice as "SUVFPE error at 1030469999" followed by a coupe of brief code statements which appear to be in machine code. How can I find the line number in my code which relates to this statement number and the code?  John Nicol jonicol18@bigpond.com ---------------------------------------------------------------------- Leledumbo · 2019-03-09 20:31 You have to recompile all units with -gl (and probably optimizations off, as it turns out the accuracy decreases as the optimization level increases). You can of course have both versions and use a conditional -Fu in fpc.cfg to build debug and release version of your app. Furthermore, you can also compile units that comes with fpc and lazarus to get line number in those units. ---------------------------------------------------------------------- marcov · 2019-03-22 13:08 Do a "uses sysutils", which converts runtime errors to exceptions that have slightly more descriptive error messages.