Problem with current dir in debugger

Leon Pollak leonp at plris.com
Tue Jun 24 10:00:56 BST 2008


On Tuesday, 24 בJune 2008, Vladimir Prus wrote:
> On Tuesday 24 June 2008 12:03:28 Leon Pollak wrote:
> > On Tuesday, 24 בJune 2008, Vladimir Prus wrote:
> > > On Tuesday 24 June 2008 10:59:27 Leon Pollak wrote:
> > > > Hello.
> > > >
> > > > After running the debugger I ask it about the current directory (pwd)
> > > > in the gdb window.
> > > > The answer is always the same: .../optimized and does not depend on
> > > > the build configuration which is currently chosen.
> > > >
> > > > Where is the clue?
> > >
> > > Build configuration does not have any effect on debugger. It's the
> > > debugger settings that specify which binary to run, and which directory
> > > should be current.
> > >
> > > - Volodya
> >
> > Sorry, Vladimir, I do not understand.
> > Where are the debugger settings which define:
> > 1. "binary to run"? The debugger icon in "Project Options" been pressed
> > seems not to give such an option.
> > 2. "which directory should be current". The same - where can I define
> > this?
>
> See the "Project->Project Options->Run Options". It has both "Executable"
> and "Working Directory" input fields.
Hmmm...
1. I was sure that this applies only to RUN but not DEBUG process.
2. In my case the "Main Program" is not marked (which strength more my suppose 
from 1) and therefore all its options are grayed out.
But even grayed options show the current DEBUG directory.

So, what is "Main Program" option?

Please, help.

Thanks a lot ahead.

-- 
Leon 




More information about the KDevelop mailing list