osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QUESTION] Best way to attach debugger to CPP tests?


What platform are you developing on (OS, compiler, etc)? Can you show exact
steps to arrive at the error?

Thanks

On Fri, Sep 21, 2018, 8:46 PM Atri Sharma <atri.jiit@xxxxxxxxx> wrote:

> Hi Wes.
>
> Thanks, your command worked and I am able to attach a debugger.
> However, I get the following error for some operations:
>
> error: Couldn't lookup symbols:
>
>   __ZNKSt3__110shared_ptrIN5arrow5ArrayEEptEv
>
> It seems that not all symbols are being loaded. I did a debug build
> (according to README). Is there an additional flag I should use during
> make to generate more debugging symbols?
>
> Regards,
>
> Atri
> On Sun, Sep 16, 2018 at 7:21 PM Wes McKinney <wesmckinn@xxxxxxxxx> wrote:
> >
> > hi Atri,
> >
> > Generally I use gdb and use the --gtest_filter argument to the test
> executables
> >
> > $ gdb --args test-name --gtest_filter=*TestOfInterest*
> >
> > Then set breakpoints in gdb as usual. C-x a brings up the visual gdb
> interface
> >
> > - Wes
> > On Sun, Sep 16, 2018 at 9:45 AM Atri Sharma <atri.jiit@xxxxxxxxx> wrote:
> > >
> > > I am trying to run compute-test.cc tests and trace their execution,
> > > but not sure what is the best mechanism for running individual tests
> > > and tracing their code flow. I looked up the wiki but could not find
> > > specific instructions.
> > >
> > > Could someone point me to the best practices around attaching a
> debugger?
> > >
> > > Regards,
> > >
> > > Atri
>
> --
> Regards,
>
> Atri
> l'apprenant
>