Thread: How to use gdb to debug pgadmin?

How to use gdb to debug pgadmin?

From
韦春阳
Date:
Hi,
I'm a beginner, and I want to use gdb to debug pgadmin.
I make a break in the pgAdmin3::OnInit(), it can work well.
But when the main frame run, which is after wxTheApp->OnRun(), any breakpoint and gdb can't work well.
 
Is there any advice about how to use gdb to debug pgadmin?
 
Thanks a lot !
 
 
Bessie

Re: How to use gdb to debug pgadmin?

From
Steffen Kuhn
Date:
  Hi Bessi,



do you have your wxWidgest compiled with debug?

I'm also new to pdAdmin and on my ay to setup my pgAdmin development
environment on my Ubuntu.
As a friend of visiuaI IDEs I played around with Anjuta and got it even
compiled, but not debugged.

Regrads
Steffen

Am 08.08.2010 10:17, schrieb ΀ŽºÑô:
> Hi,
> I'm a beginner, and I want to use gdb to debug pgadmin.
> I make a break in the pgAdmin3::OnInit(), it can work well.
> But when the main frame run, which is after wxTheApp->OnRun(), any
> breakpoint and gdb can't work well.
> Is there any advice about how to use gdb to debug pgadmin?
> Thanks a lot !
> Bessie



Re: How to use gdb to debug pgadmin?

From
韦春阳
Date:
Hi Steffen,
I have my wxWidgest compiled with debug, before the wxTheApp->OnRun(), I can step into the function of the wxWidgest, but after that command, the gdb can't work well with the programm.
Maybe there is another proccess set up and the old one is not active anymore? But I can't find other processes.
 
So, I decided to build it in Visual Studio which I'm more farmiliar with, and it can work well in the VS. 
 
Bessie

2010/8/8 Steffen Kuhn <pg@kuhnsteffen.de>

 Hi Bessi,



do you have your wxWidgest compiled with debug?

I'm also new to pdAdmin and on my ay to setup my pgAdmin development environment on my Ubuntu.
As a friend of visiuaI IDEs I played around with Anjuta and got it even compiled, but not debugged.

Regrads
Steffen

Am 08.08.2010 10:17, schrieb ΀ŽºÑô:

Hi,
I'm a beginner, and I want to use gdb to debug pgadmin.
I make a break in the pgAdmin3::OnInit(), it can work well.
But when the main frame run, which is after wxTheApp->OnRun(), any breakpoint and gdb can't work well.
Is there any advice about how to use gdb to debug pgadmin?
Thanks a lot !
Bessie