Recent

Author Topic: Exec file not saved to bundle  (Read 953 times)

AL

  • Sr. Member
  • ****
  • Posts: 261
Exec file not saved to bundle
« on: October 09, 2022, 07:38:33 pm »
I am trying to debug a program but so far not too much success.
The project options / application has a checkbox for Run and Debug with App bundle.  But so far when I compile and run the program, it is not copied in the App bundle!  What is the best way to proceed to debug a program and find where it crash?  I have installed LLDB with FpDebug. 
Lazarus 2.2.5 / FPC 3.3.1 /Monterey on VMWare running on Win 10.

I can start the program directly by clicking on it and watching the result in Terminal, but I am afraid the App bundle may make a difference as far as permissions, etc.

It it make any difference, the source is located on a VMWare shared directory located on the Win 10 machine.
Thanks for the help.
Laz 3.1, fpc 3.2.2, Win10
Laz 3.1  fpc 3.2.2, MacOS Monterey running on VMWare/Win 10
Laz 3.1  fpc 3.2.2 Ubuntu 20.04

madref

  • Hero Member
  • *****
  • Posts: 949
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: Exec file not saved to bundle
« Reply #1 on: October 11, 2022, 02:11:21 pm »
Make a copy is of the bundle and copy your compiled program to it. and then debug
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Lazarus 3.99 (rev main_3_99-649-ge13451a5ab) FPC 3.3.1 x86_64-darwin-cocoa
Mac OS X Monterey

AL

  • Sr. Member
  • ****
  • Posts: 261
Re: Exec file not saved to bundle
« Reply #2 on: October 11, 2022, 11:11:39 pm »
Thank you, can you run the bundle from the Lazarus so that the debugger is used?
Laz 3.1, fpc 3.2.2, Win10
Laz 3.1  fpc 3.2.2, MacOS Monterey running on VMWare/Win 10
Laz 3.1  fpc 3.2.2 Ubuntu 20.04

AL

  • Sr. Member
  • ****
  • Posts: 261
Re: Exec file not saved to bundle
« Reply #3 on: October 12, 2022, 03:18:44 pm »
OK I think I understand the way it work.
You have to use the command "Create App Bundle" from the project option menu, even if you already have an existing App bundle.
I did not use that as I did not want to overwrite my App Bundle manually created.
This command create a bundle with an ALIAS to the compiled exec file which reside in the directory.
Progressing slowly!
Laz 3.1, fpc 3.2.2, Win10
Laz 3.1  fpc 3.2.2, MacOS Monterey running on VMWare/Win 10
Laz 3.1  fpc 3.2.2 Ubuntu 20.04

 

TinyPortal © 2005-2018