[SOLVED] Start application from IDE does not work lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- wittbo · 2017-07-10 20:01 some days ago I installed Lazarus on my iMac. Everything runs well, the only exception is: clicking the green "Start" button in the IDE or typing cmd-R or choosing the menu item START does not start the application. One can see, that the debugger gets started (...debugging in the title header of the window) but then nothing happens. Any hint for me?   On my MacBook, no problem (OK, there I have to type my administrator account password once per session...). -wittbo- ---------------------------------------------------------------------- Phil · 2017-07-10 20:05 Quote from: wittbo on July 10, 2017, 10:01:00 pmAny hint for me? Probably debugger (gdb) not set up right for the iMac. Can you run an app okay without the debugger (Run | Run without Debugging)? If necessary, you can always debug with lldb from the Terminal. Or create a temporary Xcode project and debug your Laz app there. https://macpgmr.github.io/ObjP/ProjectXC.html ---------------------------------------------------------------------- Thaddy · 2017-07-10 20:18 Atm I have the same issues (with trunk) on anything but Windows: console application fails to show/start on Laz 1.9/3.1.1. Application compiles fine... (in the IDE) and runs fine (but not in the IDE) when opening a console and running it by hand. This is only with trunk. Are you running trunk? I am investigating... ---------------------------------------------------------------------- wittbo · 2017-07-13 17:28 Sorry, I haven't been at home for some days. @Phil: The behaviour is the same for each application on the iMac, not for one single app. Can you tell me, where to find the option "Run without debugger"? I can't find it. -wittbo- ---------------------------------------------------------------------- taazz · 2017-07-13 17:37 Quote from: wittbo on July 13, 2017, 07:28:32 pmSorry, I haven't been at home for some days. @Phil: The behaviour is the same for each application on the iMac, not for one single app. Can you tell me, where to find the option "Run without debugger"? I can't find it. -wittbo- I never found it my self either so I build it, open tool\Configure externals tools, press add, for description I typed No debug, for program filename I typed $TargetFile() and for working dir I entered $Path($TargetFile()). after that you can find a menu named no debug under the tools menu. ---------------------------------------------------------------------- balazsszekely · 2017-07-13 17:53 @wittbo, @taazz Please see attached images. ---------------------------------------------------------------------- taazz · 2017-07-13 18:13 Quote from: GetMem on July 13, 2017, 07:53:50 pm@wittbo, @taazz Please see attached images. Oh! I have the coolbar hidden at all times no wander I can't find it thank you. ---------------------------------------------------------------------- wittbo · 2017-07-14 06:53 Thanks for your hints. Since the option "Run without debugger" as shown by Getmem isn't available in my Lazarus installation 1.6.4; i tried the way posted by tax. The result is, starting the app this way, works as designed. So I suppose, that my gdb installation isn't clean. Thanks. ---------------------------------------------------------------------- Thaddy · 2017-07-14 07:01 @GetMem In trunk linux-arm console applications simply run, but don't show whatever configuration you use. So for that I use Geany for console apps. ---------------------------------------------------------------------- balazsszekely · 2017-07-14 08:05 QuoteIn trunk linux-arm console applications simply run, but don't show whatever configuration you use. So for that I use Geany for console apps.Under linux, just open the Terminal Output(View-->Debug Windows-->Terminal Output). ---------------------------------------------------------------------- Thaddy · 2017-07-14 08:17 Nope. Trunk from today..  does NOT work. 'Cause it is about running without debugger ...(compiles, executes, no show) It only works with debug settings... and it is a regression. (For average readers: it is linux-arm only, it seems, RPi 3 available for developers for free if needed.) ---------------------------------------------------------------------- balazsszekely · 2017-07-14 08:23 @Thaddy It works fine for me. You should debug it. Put a breakpoint at line 4295($LazarusDir/IDE/main.pp) and find out why it fails. ---------------------------------------------------------------------- Thaddy · 2017-07-14 08:28 will do. report back later. (note I always debug by default, this is *without* debug info) ---------------------------------------------------------------------- balazsszekely · 2017-07-14 08:36 @Thaddy Quotewill do. report back later. (note I always debug by default, this is *without* debug info)Ok, I see. Then go to line 7060. I believe this will be an issue with FPC, somewhere in Process.Execute method. ---------------------------------------------------------------------- Thaddy · 2017-07-14 12:27 Ok. (For average readers: the compiled result is OK and will work, nothing wrong with that. Just "show in the IDE" is an issue) Again: busy investigating ---------------------------------------------------------------------- wittbo · 2017-07-14 14:06 OK. Back to my original problem. It was a problem with code signing the gdb library. I renewed code signing and debugger and app are starting. So there remains one thing: After having started my mac and then using Lazarus IDE and debug mode, I have to enter my admin account data. As long as i don't shutdown my mac, no further need for that. It is not a matter of Lazarus. I can start and quit Lazarus; if I don't shutdown and restart the mac, no further input of admin account data. So it is not really enerving, more a question of interest.