Problem with current dir in debugger
apaku at gmx.de
Tue Jun 24 10:28:16 BST 2008
On 24.06.08 12:00:56, Leon Pollak wrote:
> 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.
> 1. I was sure that this applies only to RUN but not DEBUG process.
No, because thats way more confusing for the majority of users - two
different places to configure executable, arguments and working
> 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?
If you've disabled the global setting KDevelop uses the settings of the
"active target" in the automake manager. Just open the target config of
the active target via its context menu and in one of the tabs there's
the configuration of working directory and arguments available.
Do nothing unless you must, and when you must act -- hesitate.
More information about the KDevelop