Error Debug mode lazarus / 12-Debugger ---------------------------------------------------------------------- J-23 · 2020-10-17 21:57 Hello, I have an application that works fine in Relase mode. The problem occurs during Debugging: I have code that looks like this: 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 procedure TBaseWizardConnection.RecomededHostActive(  ConnectionFrame: TConnFrame;  DatabaseConnectionVersionList: TDatabaseConnectionVersionList);var  Item: TDatabaseConnectionVersion;  i: Integer;begin  with ConnectionFrame do  begin    DatabaseConnectionVersionList.DatabaseDriver := ComboBoxDatabaseType.Items[ComboBoxDatabaseType.ItemIndex];    DatabaseConnectionVersionList.Execute;    for i := 0 to DatabaseConnectionVersionList.Count -1 do    begin      Item := DatabaseConnectionVersionList.Items[i];      if Item.Version = ComboBo xDatabaseTypeVersion.Items[ComboBoxDatabaseTypeVersion.ItemIndex] then      begin //this error        with ConnectionFrame.EditHost do      begin          if Item.RecomendedHost then          begin          ReadOnly := False;            Color := clDefault;          end        else          begin            Clear;            ReadOnly := True;            Color := clForm;          end;        end;        Break;      end;    end;  end;end;  I don't know where to look for the cause of the problem. The screen with the error and debugger options: https://drive.google.com/file/d/1aMCwpNgkmr5BRzbU265YNoAUCjDD1FOt/view ?usp=sharing https://drive.google.com/file/d/1Z7JOELVzMLi1FaYdU6dSeVz6J27B_GM5/view ?usp=sharing ---------------------------------------------------------------------- J-23 · 2020-10-18 01:54 Hello, The problem is that the Debugger points to the wrong line, hence it points to the line from the begin The problem, however, concerns this line: 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 with ConnectionFrame.EditHost do When we hover the cursor over the ConnectionFrame we have the message "... not found" hence the errors I showed on the screenshots This is an obvious bug in FPC 3.3.1 and we cannot debug it Check if it is similar with you. ---------------------------------------------------------------------- bytebites · 2020-10-18 06:03 I don't know how to debug pictures. ---------------------------------------------------------------------- J-23 · 2020-10-18 13:52 Quote from: bytebites on October 18, 2020, 08:03:26 amI don't know how to debug pictures.  Hello, You mean I didn't give the full code? Well, the full code is not needed because it is not a problem with the code but with the debugger You have the images under the links. Check if your Lazarus is working properly in the given settings ---------------------------------------------------------------------- bytebites · 2020-10-18 17:50 Sometimes does not work. Failing code example. 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 tmp.call(cl, value, ret);Inspecting of variable "ret" causes crash. Was this information useful? No. ---------------------------------------------------------------------- Martin_fr · 2020-10-18 19:25 GDB sometimes troubles extenal libs.  In tools>debugger is an opiton DisableLoadSymbolsForLibraries or similar.... maybe