Recent

Author Topic: Set mode of generated binary  (Read 1792 times)

Henppy

  • Jr. Member
  • **
  • Posts: 60
Set mode of generated binary
« on: April 24, 2014, 01:53:58 am »
Hello gents,

I'm trying to debug a problem with my app that appears to be related to the binary permissions. Lazarus generates it with -rwxrwxr-x and with these permissions the program works just fine, so I can't reproduce the bug. Of course I can change it afterwards and run it, but then I can't debug it in real time.

Is there any way I can tell Laz what permissions to give to the binary?

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11444
  • FPC developer.
Re: Set mode of generated binary
« Reply #1 on: April 24, 2014, 12:09:26 pm »
A standard trick is to make your program delay somewhere close to startup, and then attach the debugger during that delay (either via Lazarus or gdb-commandline).

 

TinyPortal © 2005-2018