Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-09

Lazarus debugger not working

22 messages · 7 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

MichaelaBarb

Hello,

I am kinda new to all this stuff, I've never worked with Lazarus, never even programed...
So I installed Lazarus, using theese instructions - http://wiki.freepascal.org/Installing_Lazarus_on_MacOS_X (Installation from disk images),I have a mac book, co I got xCode as well and downloaded the command lines loot and other stuff.

Then I went on, created a new program and wrote a short greeting program to try it out. I wanted to set a breakpoint, and thats where the first problem occured - a window popped up sayin -
"There is no debugger specified. Settings breakpoints have no effect until you setup a Debugger in the debugger options dialog in the menu"

when I openned the menu and checked, everything matched the instructions on freepascal wiki. So I proceeded. Choosing the option - Set a breakpoint anyway- the breakpoint was set. But when I tried to run the program, another window popped up -
"debugger invalid - the debugger "usr/bin/gdb" does not exist or is not executable."

I tried several things I looked up on the internet from which none have worked. Finally I tried to uninstall the whole lazarus, as I thought maybe I just messed up sth during the instalation. But Im not sure I managed to do it properly since I've never used the terminal tool...

Then I installed it again, but the same problem occured.

From what I understood the debugger is missing ?

What can I do to make it work ?

Thanks for any help,
Michaela.

View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-debugger-not-working-tp4033624.html Sent from the Free Pascal - Lazarus mailing list .

Reply by email

Martin
to MichaelaBarb
MichaelaBarb wrote
"debugger invalid - the debugger "usr/bin/gdb" does not exist or is not executable."

Gdb is not part of Lazarus, it comes with your Mac Os, or IIRC it is something you need to download from apple.

Unfortunately I am not sure, exactly where. Maybe someone else can point it out.

Reply by email

Martin
to Martin
Martin wrote 10 lines
On 28/09/2013 12:41, MichaelaBarb wrote: > "debugger invalid - the debugger "usr/bin/gdb" does not exist or is not > executable." Gdb is not part of Lazarus, it comes with your Mac Os, or IIRC it is something you need to download from apple. Unfortunately I am not sure, exactly where. Maybe someone else can point it out.

Afaik (but not sure) gdb is part of
http://wiki.lazarus.freepascal.org/Installing_Lazarus_on_MacOS_X#Prerequisites:_Apple_Developer_Tools

Reply by email

Dmitry Boyarintsev
to Martin: Gdb is not part of Lazarus, it comes with your Mac Os, or IIRC it is something you need…

MacOS or Mac OS X?
For MacOSX It's supplied with Xcode - apple developer tools. Can be either downloaded from apple.com or comes with the OS installation DVD

thanks,
Dmitry

Martin wrote 20 lines
On 28/09/2013 12:41, MichaelaBarb wrote: > "debugger invalid - the debugger "usr/bin/gdb" does not exist or is not > executable." > Gdb is not part of Lazarus, it comes with your Mac Os, or IIRC it is something you need to download from apple. Unfortunately I am not sure, exactly where. Maybe someone else can point it out. -- ______________________________**_________________ Lazarus mailing list .**freepascal.org http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarus<http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130928/1e835587/attachment.html>

Reply by email

MichaelaBarb
to Martin: Afaik (but not sure) gdb is part of http://wiki.lazarus.freepascal.org/Installing_Lazarus_…

Yeah, thats what I found as well.
I thought if it wasnt a part of Lazarus, maybe it comes with xCode, but then again, I already have xCode installed... And I havent found any information telling me what other stuff should I download and install to run Lazarus correctly.

View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-debugger-not-working-tp4033624p4033628.html Sent from the Free Pascal - Lazarus mailing list .

Reply by email

Reinier Olislagers
to MichaelaBarb: Yeah, thats what I found as well. I thought if it wasnt a part of Lazarus, maybe it comes…
MichaelaBarb wrote 5 lines
Yeah, thats what I found as well. I thought if it wasnt a part of Lazarus, maybe it comes with xCode, but then again, I already have xCode installed... And I havent found any information telling me what other stuff should I download and install to run Lazarus correctly.

You did install the command line tools via Xcode as well (see the wiki page) and updated them after any Xcode upgrades, right?

Reply by email

Sven Barth
to MichaelaBarb: I am kinda new to all this stuff, I've never worked with Lazarus, never even programed...…
MichaelaBarb wrote 6 lines
when I openned the menu and checked, everything matched the instructions on freepascal wiki. So I proceeded. Choosing the option - Set a breakpoint anyway- the breakpoint was set. But when I tried to run the program, another window popped up - "debugger invalid - the debugger "usr/bin/gdb" does not exist or is not executable."

Maybe the debugger installed by the Apple Developer Tools is not located inside /usr/bin? Could you inside a terminal window whether you a) can launch "gdb"?
b) (if a) succeeeds) check what's the path returned by "which gdb"?

If b) works then you'll need to set the path to this.

Note: I'm mostly guessing here, as I don't have a Mac OS X...

Regards,
Sven

Reply by email

Sven Barth
to MichaelaBarb
MichaelaBarb wrote
When trying to open the path, it says "The file usr/bin/gdb does not exist". So i guess for some reason the Lazarus installer forgot to provide a debugger ?

Did you really enter "usr/bin/gdb"? If so then please enter "/usr/bin/gdb".

Regards,
Sven

Reply by email

Martin
to MichaelaBarb: When trying to open the path, it says "The file usr/bin/gdb does not exist". So i guess…
MichaelaBarb wrote
When trying to open the path, it says "The file usr/bin/gdb does not exist". So i guess for some reason the Lazarus installer forgot to provide a debugger ?

The lazarus installer does not provide gdb (except on windows). On all other OS gdb is pat of the OS install, the Package system of the distribution or on Mac the XCode.

I dont work on Mac, so I cant test the current situation. I can only relay what I know from others.

One think though, IIRC someone told me Apple was moving from gdb to another debugger. If they did, and IF (I have absolutely no idea) that means they dropped gdb (very wild speculation / no idea)), then maybe an older version of xcode will still have it.

Reply by email

Tom Backer Johnsen
to MichaelaBarb: When trying to open the path, it says "The file usr/bin/gdb does not exist". So i guess…

As far as I can see from the Zotero page, no plugins for AOO documents are mentioned, only Word and LibreOffice are mentioned. That seems to be a change, I am sure that AOO used to be mentioned there as well.

I am currently a user of AOO version 3.4.1 on a Mac with FireFox. As far as I can se, the plugin I included some months ago works fine with version 3 text files. So I will hang on to that version for a while. But what about upgrading to AOO version 4? Will I still be able to handle references in the new version? Or do I have to change to LibreOffice in order to be able to handle references in my documents?

Tom

Reply by email

Sven Barth
to Tom Backer Johnsen
Tom Backer Johnsen wrote
As far as I can see from the Zotero page, no plugins for AOO documents are mentioned, only Word and LibreOffice are mentioned. That seems to be a change, I am sure that AOO used to be mentioned there as well. I am currently a user of AOO version 3.4.1 on a Mac with FireFox. As far as I can se, the plugin I included some months ago works fine with version 3 text files. So I will hang on to that version for a while. But what about upgrading to AOO version 4? Will I still be able to handle references in the new version? Or do I have to change to LibreOffice in order to be able to handle references in my documents?

1) Don't reply to existing threads with a new topic as you're less likely to get answers this way.
2) What does that have to do with Lazarus or Free Pascal?

Regards,
Sven

Reply by email

Tom Backer Johnsen
to Sven Barth

Terribly sorry. I did send this message to the wrong list! Should have been the OpenOffice one and not Lazarus!

Tom

Sven Barth wrote 17 lines
On 28.09.2013 21:54, Tom Backer Johnsen wrote: > As far as I can see from the Zotero page, no plugins for AOO documents are mentioned, only Word and LibreOffice are mentioned. That seems to be a change, I am sure that AOO used to be mentioned there as well. > > I am currently a user of AOO version 3.4.1 on a Mac with FireFox. As far as I can se, the plugin I included some months ago works fine with version 3 text files. So I will hang on to that version for a while. But what about upgrading to AOO version 4? Will I still be able to handle references in the new version? Or do I have to change to LibreOffice in order to be able to handle references in my documents? 1) Don't reply to existing threads with a new topic as you're less likely to get answers this way. 2) What does that have to do with Lazarus or Free Pascal? Regards, Sven -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Tom Backer Johnsen
S?ndre Steinkjellersmauet 7
5003 Bergen
Mobil: +47 9169 3346
Email: backer(at)psych.uib.no

Reply by email

Dmitry Boyarintsev
to Sven Barth: Did you really enter "usr/bin/gdb"? If so then please enter "/usr/bin/gdb". Sven

Make sure Xcode was installed with "command line tools", it might be off by default

Also, try opening Terminal and running "wheteis gdb". It should give the full path

Sven Barth wrote 20 lines
On 28.09.2013 21:22, MichaelaBarb wrote: > When trying to open the path, it says "The file usr/bin/gdb does not > exist". > So i guess for some reason the Lazarus installer forgot to provide a > debugger ? > Did you really enter "usr/bin/gdb"? If so then please enter "/usr/bin/gdb". Regards, Sven -- ______________________________**_________________ Lazarus mailing list http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarus<http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130928/8f069e06/attachment.html>

Reply by email

MichaelaBarb
to MichaelaBarb: I am kinda new to all this stuff, I've never worked with Lazarus, never even programed...…

So, I got myself Parallels and Windows XP, on which the Lazarus runs perfectly. I think this is the best option for me now. I can come back to this problem when I'm a bit more experienced. Thank you all for your help, I really appreciate it. But it is hard to solve the problem when you cant see what is actually happening in my laptop, and I barely know whats happening either.

Thanks, again...
Regards,
M.

View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-debugger-not-working-tp4033624p4033645.html Sent from the Free Pascal - Lazarus mailing list .

Reply by email

Florian Klämpfl
to Reinier Olislagers
Reinier Olislagers wrote 13 lines
On 02/10/2013 16:02, Martin wrote: > On 28/09/2013 12:41, MichaelaBarb wrote: >> "There is no debugger specified. Settings breakpoints have no effect >> until >> you setup a Debugger in the debugger options dialog in the menu" > > Ok, I jut found this: > http://forum.lazarus.freepascal.org/index.php/topic,22230.0/topicseen.html > > Not sure how this can be solved. Sorry, couldn't resist: Switch FPC over to LLVM+lldb?

How would this teach Lazarus to use lldb (and lldb about pascal)?

Reply by email

Reinier Olislagers
to Florian Klämpfl
Florian Kl?mpfl wrote 11 lines
Am 02.10.2013 17:01, schrieb Reinier Olislagers: > On 02/10/2013 16:02, Martin wrote: >> On 28/09/2013 12:41, MichaelaBarb wrote: >> http://forum.lazarus.freepascal.org/index.php/topic,22230.0/topicseen.html >> >> Not sure how this can be solved. > > Sorry, couldn't resist: > Switch FPC over to LLVM+lldb? How would this teach Lazarus to use lldb (and lldb about pascal)?

It wouldn't by itself, of course.
Adding pascal support to lldb and Lazarus support for lldb without further using LLVM could of course, in theory, be done.

Reply by email