Eclipse debugger

50 views
Skip to first unread message

Vivek

unread,
May 8, 2020, 11:46:53 AM5/8/20
to deal.II User Group
Dear all,

After following Prof. Bangerth's lectures, I have been trying to familiarize myself with the gdb debugger in eclipse as shown in lectures 8 and 25. 

However, once I go into the debug mode, and hit the resume button (to run the program and abort when it hits an error), I don't get detailed messages in the backtrace as shown in the snapshots attached. 

I compiled in the debug mode and I am using macOS Catalina 10.15.4, gdb 9.1 and deal.II version 9.1.1.

I was wondering if someone has any guidance for me.

Thanks,
Vivek.
Lecture_25.png
Debugger_eclipse.png

Wolfgang Bangerth

unread,
May 8, 2020, 11:54:51 AM5/8/20
to dea...@googlegroups.com
But you *do* have a detailed backtrace at the top left in your first picture.
Are you asking why you don't have that in the second picture? What happens if
you expand the other threads? Do any of them have a reasonable backtrace?

Best
W.

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Vivek

unread,
May 8, 2020, 12:04:33 PM5/8/20
to deal.II User Group
Dear Professor,

I apologize for not being clear about the images attached. The first one is a snapshot from the recorded lecture 25, indicating the backtrace I expect. The second image is the backtrace I see on on my computer. I expanded the other threads, but none of them seem to have a reasonable backtrace.

Thanks,
Vivek.

Wolfgang Bangerth

unread,
May 8, 2020, 12:15:08 PM5/8/20
to dea...@googlegroups.com
On 5/8/20 10:04 AM, Vivek wrote:
>
> I apologize for not being clear about the images attached. The first one is a
> snapshot from the recorded lecture 25, indicating the backtrace I expect. The
> second image is the backtrace I see on on my computer. I expanded the other
> threads, but none of them seem to have a reasonable backtrace.

Then we've already reached the extent to which I can help on a platform I'm
not familiar with.

What happens if you run the program on the command line using gdb or lldb?

Vivek

unread,
May 9, 2020, 12:21:23 PM5/9/20
to deal.II User Group
Dear Professor,

Thanks for the suggestion. 

I ran the program on the command line with gdb which gave me a similar backtrace (attached image gdb_commandline).  When running the program with lldb, I got a reasonable backtrace (attached image lldb_commandline).  I guess I'll stick to lldb and try to make best use of the debugger.

Thanks,
Vivek.
gdb_commandline.png
lldb_commandline.png

Wolfgang Bangerth

unread,
May 9, 2020, 12:28:29 PM5/9/20
to dea...@googlegroups.com
On 5/9/20 10:21 AM, Vivek wrote:
>
> I ran the program on the command line with gdb which gave me a similar
> backtrace (attached image gdb_commandline).  When running the program with
> lldb, I got a reasonable backtrace (attached image lldb_commandline).  I guess
> I'll stick to lldb and try to make best use of the debugger.

OK, good to know.

I bet there is a way to tell Eclipse to use lldb instead of gdb under the
hood. With a little bit of googling, you should be able to find out how to do
that!
Reply all
Reply to author
Forward
0 new messages