[haiku-development] How to debug inside webkit and other system libraries

  • From: Fotis Kapetanias <fotis.kapetanias@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 13 Feb 2021 19:55:31 +0200

Hi All,

I hope it's appropriate to ask such a question here and not in the
forums. Please let me know if it's not the case. I actually joined the
list for that reason.

Before I proceed with my actual question a little background info to
have the scope.

So, a week ago I decided to try it at last and pulled and built Haiku
locally on my Haiku 64-bit (recent nightly). I read mutiple time the
"Building Haiku Guide" and any other related page and also local
documents in the code describing the compile process. Concluded that I
didn't need to build "buildtools" because I had already what is needed
in the installation. I just configured Haiku and built it. QuicklyI
got an "update error" for something in the kernel about IA-32. I
thought that it's irrelevant with the architecture I am building on so
I then retried with jam without "-q" option in order to complete.
I think it built everything or so it seems at least.

My intention is to try to at least debug any issue I can on
WebPositive since for most of us is something we want to improve and
affect a lot of users. I don't have any experience with web
development but I have many many years of professional C++ experience
on various other fronts. My time is very-very restricted but I want to
at least get a start.

I have a release build of whole Haiku (in generated folder) but I
managed to also build debug version of WebPositive (followed a guide
and created a script, don't remember details now). I debugged with
debugger and I am able to stop at breakpoints and trace. Experimented
with changing code and re-building, all well.

So, at last to my actual question: How I will be able to trace inside
WebKit? or other system libs?
I see in debugger that they are loaded from /boot/system/lib. Should
they have been loaded from my Haiku built folder instead? (I hope I
don't need to build and install the whole system somewhere in order to
do it?).

Or, put it in another way, which is the prefered/recommended way of
building and debugging WebPositive and the system libs it depends on?

I am open to any suggestion and remark regarding the actual question
or the use of the list.

Thanks a lot in advance!
Fotis (fkap)

Other related posts: