[mlpack] Issue with debugging

Gopi Manohar Tatiraju deathcoderx at gmail.com
Sat Apr 24 08:24:15 EDT 2021


Hey Omar,

Thank you.
I will start learning vim or Emacs and will also adapt other suggestions in
my work environment.

Regards
Gopi


On Sat, Apr 24, 2021, 17:42 Omar Shrit <omar at shrit.me> wrote:

> Hello Gopi,
>
> I think, most if not all of Linux users would use a text editor such as
> Emacs or Vim. I personally use Kakoune which is inspired by Vim.
>
> All of these editors would need a good amount of time
> to learn them and a considerable amount of time to master them.
>
> In addition, all of them can be extended using plugins.
>
> Considering compilation and debugging. We use directly on gcc/g++ and
> gdb for debugging. In the case of mlpack, you have CMake ready of you.
>
> For the OS, any Linux distros can have all of above editors and
> compilers.
>
> Therefore, there is no need for IDE.
>
> Best,
> Omar
>
> On 04/24, Gopi Manohar Tatiraju wrote:
> > 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
> > >
>
> > _______________________________________________
> > mlpack mailing list
> > mlpack at lists.mlpack.org
> > http://knife.lugatgt.org/cgi-bin/mailman/listinfo/mlpack
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://knife.lugatgt.org/pipermail/mlpack/attachments/20210424/135aa98e/attachment-0001.htm>


More information about the mlpack mailing list