value of "self" in gdb becomes nil lazarus / 12-Debugger ---------------------------------------------------------------------- tparry_venture · 2016-04-15 18:46 Here is the error message I get: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i The GDB command:"whatis SELF"did not return any result.  Now this may or may not be a debugger error. Not sure if something else is clobbering the self pointer. I call a method of a class and when it returns the self pointer is nil. Where would I look for the cause? This was running fine until recently (is that my code?)It was also running fine under Laz 1.4.4. Project is a console app. Using Dwarf2 in project options Using Laz 1.6 (ie FPC 3.0.0) 2016-02-14  on WIN 10 64 bit but Laz is for 32 bit ---------------------------------------------------------------------- Martin_fr · 2016-04-15 20:06 IIRC that message means that gdb neither gave an error, nor a result. Something that shouldnt happen, but does.... So far, in my tests all versions of gdb fail at some point. So I dont know if this can be worked around or not. 1) You can try the older gdb from our source forge download page (in the win32 section) But first make sure which one you use. 2) Supply more info. a) sample code / a few lines of context, and what line you are on b) all the basics from  http://wiki.lazarus.freepascal.org/GDB_Debugge r_Tips#Create_a_new_Report You may also alter your settings. Optimization level 0 / no opt. Try stabs vs dwarf. (but not dwarf 3). Dwarf (2) is preferred. While stepping is on a begin or end, things may not work.