[mlpack] Issue with debugging
Gopi Manohar Tatiraju
deathcoderx at gmail.com
Sat Apr 24 06:04:06 EDT 2021
Hey Ryan,
Thank you for the reply.
Actually, I am facing soo many issues with Ubuntu 20.04 and also with
Visual Studio Code.
And for some reason, Ubuntu 20.04 is very buggy and laggy. Working 2 VS
code windows with
chrome active is nearly impossible.
I am planning to set up my dev environment properly. If you don't mind me
asking,
what is your dev environment. Which OS and IDE do you use?
My laptop config is:
Processor: i7-7700HQ
RAM: 8GB
GPU: GTX 1050Ti
I've used Ubuntu since 16.04 and I am pretty comfortable with it to work
around.
I don't mind changing it for good reasons.
If you get time, please let me know your thoughts.
Regards
Gopi
On Sat, Apr 24, 2021 at 5:03 AM Ryan Curtin <ryan at ratml.org> wrote:
> On Tue, Apr 20, 2021 at 10:59:57AM +0530, Gopi Manohar Tatiraju wrote:
> > Hello mlpack,
> >
> > I use visual studio for mlpack development. I build mlpack and then link
> it
> > using task.json and launch.jon files in vscode.
> >
> > I wrote this simple example:
> >
> > #include <mlpack/core.hpp>
> > > #include "armadillo"
> > > using namespace std;
> > > int main()
> > > {
> > > arma::mat foo;
> > > mlpack::data::DatasetInfo info;
> > > mlpack::data::Load("data/data.csv", foo, info, arma::csv_ascii);
> > > foo.t().raw_print();
> > > return 0;
> > > }
> >
> >
> > When I am putting a breakpoint on *mlpack::data::DatasetInfo info *my
> > debugger is working fine and stepping into that line but when I am
> putting
> > a breakpoint on line *mlpack::data::Load("data/data.csv", foo, info,
> > arma::csv_ascii)*, it is not stepping into this function but rather
> > whatever I do it step's over this line.
>
> I'm not an expert at Visual Studio, but is it possible that the function
> `mlpack::data::Load()` is actually compiled inside of mlpack.dll, and
> there are no debugging symbols available?
>
> You might be able to fix this by recompiling mlpack with debugging
> symbols. But, I don't know exactly how to do this with Visual Studio.
>
> --
> Ryan Curtin | "Excuse me. I don't mean to impose, but I am the
> ryan at ratml.org | Ocean." - Bobby
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://knife.lugatgt.org/pipermail/mlpack/attachments/20210424/fcacacf8/attachment.htm>
More information about the mlpack
mailing list