how to use eclipse when debugging postgreSQL backend - Mailing list pgsql-hackers

From 노홍찬
Subject how to use eclipse when debugging postgreSQL backend
Date
Msg-id 000801ca3ffe$c31e0cd0$495a2670$@yonsei.ac.kr
Whole thread Raw
Responses Re: how to use eclipse when debugging postgreSQL backend
List pgsql-hackers
<div class="Section1"><p class="MsoNormal">Hello hackers,<p class="MsoNormal"> <p class="MsoNormal"> <p
class="MsoNormal">Ireally appreciate Mr. Cecchet’s effort to establish the wiki page (working_with_eclipse,
http://archives.postgresql.org/pgsql-hackers/2008-10/msg00312.php).<pclass="MsoNormal"> <p class="MsoNormal">I set up
myPostgreSQL development environment with Eclipse, following the page’s instructions.<p class="MsoNormal"> <p
class="MsoNormal">However,I’m stuck to the situation that I cannot debug the modified backend source of PostgreSQL <p
class="MsoNormal"> <pclass="MsoNormal">since the gdb incorporated with Eclipse doesn’t support the debugging of the
forkedchild processes.<p class="MsoNormal"> <p class="MsoNormal"> <p class="MsoNormal">When I start debugging process
byusing the project default, it can only debug the postmaster process,<p class="MsoNormal"> <p class="MsoNormal">since
thepostmaster process forks child processes each of which is actually postgres backend process responsible for the
responseto each client process (psql).<p class="MsoNormal"> <p class="MsoNormal">What I’m trying to debug is the
storage-relatedpart of the backend source, so the gdb should be able to access the forked processes.<p
class="MsoNormal"> <pclass="MsoNormal">I tried several ways like making the default option of gdb to be ‘set
follow-fork-modechild’, but those tries didn’t work.<p class="MsoNormal"> <p class="MsoNormal">For sure, there is
anotheroption, giving up using eclipse when debugging and using the console-mode gdb, <p class="MsoNormal"> <p
class="MsoNormal">butI prefer using graphical development environment and that’s the reason why I chose to use eclipse
asa default development tool in the very first start.<p class="MsoNormal"> <p class="MsoNormal">(This try might be
regardedas silly though, I might be supposed to get familiar to console development environment,<p
class="MsoNormal"> <pclass="MsoNormal">but if someone went through the same situation before and he or she can help me,
itwill be very time-saving)<p class="MsoNormal"> <p class="MsoNormal"> <p class="MsoNormal">If someone can let me know
howto set Eclipse or several steps needed to access the forked process while Elipse debugging, <p class="MsoNormal"> <p
class="MsoNormal">Itwill be very much helpful to me.<p class="MsoNormal"> <p class="MsoNormal">Thank you for reading
this<pclass="MsoNormal"> <p class="MsoNormal"> <p class="MsoNormal"
style="text-autospace:none;word-break:break-all"><b><spanstyle="font-size:9.0pt;font-family:"맑은 고딕";color:#1F497D">-
BestRegards<br />   Hongchan<br />   (<a href="mailto:fallsmal@cs.yonsei.ac.kr"><span
style="color:blue">fallsmal@cs.yonsei.ac.kr</span></a>,(02)2123-7757) -</span></b><span
style="font-size:9.0pt;font-family:"맑은고딕""></span><p class="MsoNormal"><span style="font-size:9.0pt"> </span><p
class="MsoNormal"> </div>

pgsql-hackers by date:

Previous
From: Jaime Casanova
Date:
Subject: Re: [PATCH] Largeobject access controls
Next
From: Jaime Casanova
Date:
Subject: Re: Lock Wait Statistics (next commitfest)