Eclipse_Spack_Dealii_Debugging mode_Can't find the source file

20 views
Skip to first unread message

Behrooz Karami

unread,
Dec 3, 2019, 5:38:46 PM12/3/19
to deal.II User Group
Dear All,

I am trying to debug Dealii examples in Eclipse.

The project is compiled and run perfectly  on its own.

However, when I want to try debugging and following classes and functions, it comes across to files that do not exist (at least to me). For example it looks for the file tria.cc which does not exist. There exists of course tria.H (somewhere else) but not tria.CC. Besides, it looks for that in a path and folder which again do not exist!
In some cases which the file extension is correct (e.g. it is .h) I could resolve the issue by giving the file location, however it is not  convenient to address header files one by one.

Any ideas or suggestions are appreciated.

Regards,
Behrooz Karami

Wolfgang Bangerth

unread,
Dec 3, 2019, 9:01:54 PM12/3/19
to dea...@googlegroups.com
How did you install deal.II? If you installed it and then deleted the
source files for deal.II, then necessarily you can't go into them in a
debugger because the executable only records file and line numbers for
each statement you are trying to execute, but there is no way to look up
what the code looked like for these lines.

So if you want to debug into deal.II classes, you need to have access to
the original source files. That means not deleting the directory in
which deal.II was unpacked and from which it was compiled. I suspect
that at least some of the ways in which we distribute deal.II (via
package managers, spack, and maybe candi) do not preserve the source files.

Best
W.

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

Behrooz Karami

unread,
Dec 4, 2019, 2:56:28 AM12/4/19
to deal.II User Group
Dear Wolfgang,

Thank you for the reply.
Yes. Actually I installed it through Spack.
So, now I was just wondering if there is any way to reverse or repair the process?

Best,
Behrooz

Wolfgang Bangerth

unread,
Dec 4, 2019, 9:44:58 AM12/4/19
to dea...@googlegroups.com
On 12/4/19 12:56 AM, Behrooz Karami wrote:
>
> Thank you for the reply.
> Yes. Actually I installed it through Spack.
> So, now I was just wondering if there is any way to reverse or repair the process?

I think you had to install deal.II again. I suspect that spack has a flag
somewhere that makes it keep the source files around at the end.

Best
Wolfgang

Behrooz Karami

unread,
Dec 4, 2019, 12:03:12 PM12/4/19
to deal.II User Group
All right. Thank you very much.

Best,
Behrooz
Reply all
Reply to author
Forward
0 new messages