Recent

Author Topic: problem with debugger  (Read 6412 times)

wytenis90

  • Newbie
  • Posts: 5
problem with debugger
« on: May 16, 2013, 03:19:39 pm »
Hello,

First of all, i'm new to lazarus compiler ( I'm intel mac user). I made everything what was said in mac starter tutorial. But after this, i can't compile simple pascal program. Here is attached file.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11795
  • Debugger - SynEdit - and more
    • wiki
Re: problem with debugger
« Reply #1 on: May 16, 2013, 03:36:50 pm »
This is a problem known for 64 bit macs. http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#TimeOuts_.2864_Bit_only.29

The only GDB that currently works, is the one that comes with the apple tools and is version 6.3.50.

There is a gdb in MacPorts, but last time I tested it crashed (its a while back, and I can only test the 32 bit version anyway)

Back to the problem.

GDB 6.3.50 sometimes has small hickups. And it does not finish some commands.
The IDE can work with that. And so far I have not heard of any case that actually did not continue after that warning.
So if you click OK, it should continue.

You can switch the warning off, in the debugger options (Menu Tools > Options).
You can also set the warn_timeout down to 50.

Then it should work.

---
If there are other issues it ay be worth to test by setting debug info to stabs explicitly. You can also try dwarf, but IIRC stabs works better.

http://wiki.lazarus.freepascal.org/Debugger_Setup
(Also check you follow all other settings mentioned there)

Make sure any package you include has the same settings (packages (LCL, LazReport, TAChart, DB, ....) can have their own settings.)


wytenis90

  • Newbie
  • Posts: 5
Re: problem with debugger
« Reply #2 on: May 16, 2013, 04:49:52 pm »
Thanks, it worked.
It's a bit off-topic, but where can I read about running the program? It is only building but not running. I know there is only way - to use terminal and any notepad, safari. Maybe you can help to the newbie?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11795
  • Debugger - SynEdit - and more
    • wiki
Re: problem with debugger
« Reply #3 on: May 16, 2013, 05:50:47 pm »
I am not sure what your question is?

It is running in the debugger is it not? (You would not have the timeout otherwise).

Does your app has a GUI (TForm) ?
Or is it a console app, that you writes and reads to a terminal?


For console app, in the debugger: http://wiki.lazarus.freepascal.org/Debugger_Console_App#Mac

You want to run a GUI app, I am not sure. You must have an application bundle. The actual exe is somewhere in it...
I don't do much on Mac...

Maybe here: http://wiki.lazarus.freepascal.org/Portal:Mac



wytenis90

  • Newbie
  • Posts: 5
Re: problem with debugger
« Reply #4 on: May 16, 2013, 09:34:17 pm »
Sorry, i'm such a noob. In a simple way, I wanted to say, that I don't see the result of my code. I can't compile it, i only get message, that it is succesfully built, but result doesn't appear. In Windows it appears automatically.

I installed everything and don't want to use terminal.... Thanks

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11795
  • Debugger - SynEdit - and more
    • wiki
Re: problem with debugger
« Reply #5 on: May 16, 2013, 10:14:42 pm »
Ok, but I am still not sure what and when does not appear.

1) You application does have a TForm on which you did put components (buttons, edits, ...)? Does it?

Because some people write apps that have no form. So I need to know you do expect a form to pop up.

2) You mean it does not show up when you select "run" from the "Run" menu? (Not sure what key it is, on Windows it is F9, but on Mac it is another key.)

OR:

You mean it does not show, when you start the compiled app outside the IDE?

------------------------------------
You wrote:
Quote
Thanks, it worked.
How do you know it works, if your app does not show?.

Did you try to run the app from outside the IDE? You need to google "Application Bundle" I do not know much about it)

But also, in the project settings, make sure "Application Bundle" is checked.

-----------------------------------
Please verify your setup: http://wiki.lazarus.freepascal.org/Debugger_Setup

If it problem is running in the debugger, please provide a log as detailed here:
http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Log_info_for_debug_session

wytenis90

  • Newbie
  • Posts: 5
Re: problem with debugger
« Reply #6 on: May 16, 2013, 10:57:36 pm »
"You mean it does not show, when you start the compiled app outside the IDE?"
yeah, that's what i wanted to say.
Application bundle checked.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11795
  • Debugger - SynEdit - and more
    • wiki
Re: problem with debugger
« Reply #7 on: May 16, 2013, 11:27:55 pm »
Then you need to ask in a new thread. With a topic that does not say "debugger", but "Mac"

I hardly use Mac, but I am an expert on the debugger.

People who know about Mac, on the other hand may not read this topic.

 

TinyPortal © 2005-2018