Recent

Author Topic: coded DBUG?  (Read 317 times)

What I can do

  • Full Member
  • ***
  • Posts: 156
coded DBUG?
« on: April 28, 2025, 09:09:58 pm »
Lazarus 4.8  FPC 3.2.2 on 86@64
is there a way to code  breadpoint without F5
« Last Edit: April 28, 2025, 09:12:04 pm by What I can do »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11137
  • Debugger - SynEdit - and more
    • wiki
Re: coded DBUG?
« Reply #1 on: April 28, 2025, 09:21:29 pm »
asm
  int3
end;

IIRC "int3" without space (but may need to double check.

Also may depend on the debug backend.

Using FpDebug, you need to adjust the setting. In the Tools option > Debug backend => in the property grid: "HandleDebugBreakInstruction": disable the setting "dboIgnoreAll"

On Windows you also have on OS function for that. But then you do stop in that function, instead of the caller. (one day that may get changed... one day...)

440bx

  • Hero Member
  • *****
  • Posts: 5267
Re: coded DBUG?
« Reply #2 on: April 28, 2025, 10:20:02 pm »
IIRC "int3" without space (but may need to double check.
I can confirm that's correct.  I use it all the time. :)
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

What I can do

  • Full Member
  • ***
  • Posts: 156
Re: coded DBUG?
« Reply #3 on: April 29, 2025, 02:45:32 pm »
Martin_fr, 440bx
Yes it was the space and it's working now.
Thank you so much.

 

TinyPortal © 2005-2018