* * *

Author Topic: Debugger won't execute  (Read 912 times)

julgus

  • New member
  • *
  • Posts: 29
Debugger won't execute
« on: October 11, 2016, 02:42:51 pm »
macOS Sierra, iMac 27"

I have followed the instructions given at:
https://sourceware.org/gdb/wiki/BuildingOnDarwin#Giving_gdb_permission_to_control_other_processes%7Cofficial

I get the following message when trying to run my app:
During startup program terminated with signal SIGTRAP, Trace/breakpoint trap

Clues?

julgus

  • New member
  • *
  • Posts: 29
Re: Debugger won't execute
« Reply #1 on: October 11, 2016, 03:18:40 pm »
Seems to be something with macOS Sierra. If I disabled csrutil it works.

cpbns

  • New member
  • *
  • Posts: 5
Re: Debugger won't execute
« Reply #2 on: November 03, 2016, 08:37:06 pm »
in my test under Sierra 10.12.1 it fails again!
The problem isn't fixed. May be the coming update 12.2. can help.

Phil

  • Hero Member
  • *****
  • Posts: 2043
Re: Debugger won't execute
« Reply #3 on: November 03, 2016, 08:45:47 pm »
in my test under Sierra 10.12.1 it fails again!
The problem isn't fixed. May be the coming update 12.2. can help.

I doubt it.

See the recent discussion (Oct 28 and later) here:

http://forum.lazarus.freepascal.org/index.php/topic,34165.15.html

Solution for now is to use Xcode's lldb debugger from Terminal command line.

 

Recent

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