* * *

Author Topic: Debugging Errors  (Read 1073 times)

JLWest

  • Full Member
  • ***
  • Posts: 192
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?
JLWEST 
 FPC 3.0.4, Lazarus IDE v1.8.2 Windows 10 Pro
 Intel i7 770K CPU 4.2GHz 16 Gig Ram
GeForce GTX 1080 Graphics - 8 Gig 1.5 Terabyte SSD

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 4727
    • 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?)


 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus