Recent

Author Topic: watch and breakpoint problems  (Read 1530 times)

johnyq

  • Newbie
  • Posts: 1
watch and breakpoint problems
« on: August 28, 2018, 02:17:58 pm »
I recently updated from FPC 2.6 to 3.04. I could never get breakpoints to work.
All I ever got on any line under any conditions was a can't set breakpoint message.
I had debug on and everything setup like I always have but no luck. It also crashed
when an integer overflowed even with all the checking turned off. I have code where
overflow is required and expected (like checksums). I didn't believe this would be the
problem so I tried to attribute to something else, But it wasn't near as I could tell.
There were many other troublesome behaviors as well. Without breakpoints it was
very tedious to diagnose.I have updated several times over many years without
this level of incompatibility.

I abandoned 3 and went back to 2.6. Breakpoints worked as usual. But I have trouble
with watches. (this is not new). If I watch a simple integer it works. But when I use
something like THISLINE^.LINENO which points at an integer it may work or may not.
When you first do it it will work sometimes but then later without any changes it will report
Syntax Error near... Re-entering, deleting, restarting, rebooting doesn't usually fix it.
Of course there is no syntax error, and the same entry worked a few minutes ago.

Any ideas?

JY

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9792
  • Debugger - SynEdit - and more
    • wiki
Re: watch and breakpoint problems
« Reply #1 on: August 28, 2018, 03:01:19 pm »
First of a all:
- What OS?
- 32/64 bit?
- Are you using the Lazarus IDE? Or is the problem with the fp ide (the command line ide of fpc)?

If it is the fpc command line IDE, someone else may be able to help.

--------------------------------------------------------------------
If it is the Lazarus IDE:
- Which version of Lazarus?
- What version of gdb? And does it match the 32/64bit of your system?

I understand you did the config, but please verify against those instructions:
http://wiki.lazarus.freepascal.org/Debugger_Setup

At what time to you get the error? When you start debugging? Earlier? Later?
Screenshot, or exact wording of the message?

 

TinyPortal © 2005-2018