Debugging console application

Vladimir Prus ghost at cs.msu.su
Tue Jul 20 16:07:32 BST 2010


On Tuesday 20 July 2010 18:52:31 Andreas Pakulat wrote:

> On 20.07.10 16:13:40, Leon Pollak wrote:
> > On Sunday July 18 2010, Andreas Pakulat wrote:
> > > On 18.07.10 00:49:29, Leon Pollak wrote:
> > > > The old kdev3 FAQ says:
> > > > Debugging a console application : How do I get the console to show so I
> > > > can enter data?
> > > > In the Project Options dialog, go to the Debugger tab and check Enable
> > > > separate terminal for application IO
> > > 
> > > I'm not sure that worked correctly, besides requiring konsole (IIRC)
> > > 
> > > > And how do I do this in kdev4?
> > > 
> > > You start the app in a separate terminal and then let kdevelop attach
> > > gdb to it using Run->Attach To Application.
> > > 
> > > Andreas
> > This option does not take into account the gdb executable I defined in the 
> > "configure launches" dialog.
> > What do I miss?
> 
> Nothing, attaching to a running app doesn't use any launch config and hence
> it probably uses the "gdb" binary from the PATH environment variable.

It seems it would be reasonable to separate "Attach using current launch config",
that should use gdb settings and application name, and "Attach to whatever",
which is independent of any configs.

Thanks,
Volodya





More information about the KDevelop mailing list