Author Topic: Debugging Errors  (Read 2305 times)


  • Hero Member
  • *****
  • Posts: 845
Debugging Errors
« on: January 15, 2018, 03:21:39 am »
So I installed Free Pascal and Lazarus.

I created a project with one window and 1 button.
I changed the caption on button to Quit and in the clicked event of the button I coded "Close;"

I ran the project and I get a  debug windows.

I get a Debugger Window Warning
GBH has encountered an internal error:
Press "OK" to continue debugging. This many not be safe. Press Stop to end the debug session.

The More button shows:

While executing the command:
"TGDBMIDebuggerInstruction: "-file-exec-and-symbols ", "
gdb reported:
"&"../../gdb-7.2/gdb/printcmd.c:1916: internal-error:
What does that mean?

So I hit stop and get a second message window to save my work and I may lose all my work.

It's just one form1 and one button.

any ideas?
FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB


  • Administrator
  • Hero Member
  • *
  • Posts: 6604
  • Debugger - SynEdit - and more
    • wiki
Re: Debugging Errors
« Reply #1 on: January 15, 2018, 03:52:46 am »
GDB (the debugger) is a 3rd party / gnu tool.
It is called by the IDE.

Unfortunately gdb itself has some bugs too. The error you are getting means you encountered one of them.

Are you on windows? (exact OS?)

On our sourceforge site under windows (both 32 and 64 bit) as a folder "Alternative gdb".
It has newer versions of gdb.

You may try such a newer version (for the correct 32/64 bitness).

If you are not on windows, check your OS' software repository for a newer gdb.

Also this could be:

Interference by your Anti virus

The path name of your exe/project  (any none latin chars in path or name?)
If you did not save the project before, it is in a temp folder under your username (any none latin chars in your username?)


TinyPortal © 2005-2018