Re: [Ubuntu-BD] Graphical frontend of GDB

2012-02-20 Thread Nasimul Haque
On 20 February 2012 09:36, Junayeed Ahnaf Nirjhor
 wrote:
> On 02/19/2012 10:13 PM, Nasimul Haque wrote:
>>
>> DDD is a good frontend for gdb. http://www.gnu.org/software/ddd/
>
> BTW, I really loved the interface of "Nemiver" . Unfortunately, I can't use
> a debugger, yet. Can someone give me some tips on how to use a C++ debugger?

The steps are simple. You need to compile your C++ program with
debugger symbols on. By default, the binary does not include debug
information to make it fast and reliable. Then load the executable in
the debugger, if the debugger is smart it will find the related code
file otherwise show it the source code also. Put some breakpoints and
hit 'step', 'next' or 'continue'.

> In ruby, we use various test over debugging. Cucumber, Shoulda, Test::Unit
> etc. I've never really used any debugger at all :(

Dynamic languages differ from static languages very much.
Ruby/Python/Perl etc. are very different than C/C++. It is a very good
habit to code in TDD/BDD or whatever test-first/test-oriented
development. But still sometimes debugging is necessary. Yes, even in
Ruby or Python. C++ users are already writing too much code that's why
they avoid writing unit tests. C++ also has great unit testing tools.
You can use cucumber to test C++. In fact, people are writing more
unit tests in C++ also.

To summarize: yes, you should be writing code with unit tests. Still,
you need to debug sometimes.

-- 
M. Nasimul Haque
Appliansys, Coventry, UK
http://www.nasim.me.uk

-- 
Ubuntu Bangladesh
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd


Re: [Ubuntu-BD] Graphical frontend of GDB

2012-02-20 Thread Junayeed Ahnaf Nirjhor

On 02/19/2012 10:13 PM, Nasimul Haque wrote:
DDD is a good frontend for gdb. http://www.gnu.org/software/ddd/ 
BTW, I really loved the interface of "Nemiver" . Unfortunately, I can't 
use a debugger, yet. Can someone give me some tips on how to use a C++ 
debugger?


In ruby, we use various test over debugging. Cucumber, Shoulda, 
Test::Unit etc. I've never really used any debugger at all :(


--
Junayeed Ahnaf Nirjhor
Core Developer Intern, Diaspora
Twitter - Nirjhor 
--
Ubuntu Bangladesh
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd


Re: [Ubuntu-BD] Graphical frontend of GDB

2012-02-20 Thread Junayeed Ahnaf Nirjhor

On 02/19/2012 10:13 PM, Nasimul Haque wrote:

On 19 February 2012 13:41, Junayeed Ahnaf Nirjhor
  wrote:

Our varsity use VS 2010 and XCode , but I use my own laptop (gcc, g++ with
sublime). They are generous enough to honor us by letting us use our tools
even during tests.

A very good news that is! In our times, we were bound to use whatever
the teacher chose for us. :(

DDD is a good frontend for gdb. http://www.gnu.org/software/ddd/

OT: SublimeText2 is not released yet, and it is a closed source
project. It'll also cost money when it is released. I hope it will not
die like textmate. TextMate is a great example of why closed-source
projects are risky to use. It only lived a couple of years, while vim,
emacs are there for forever, improving every now and then.


Textmate 2 is in development AFAIK. And Sublime 2 dev is VERY active 
releasing 13~15 builds per month.


And thanks for your reply :)

--
Junayeed Ahnaf Nirjhor
Core Developer Intern, Diaspora
Twitter - Nirjhor 
--
Ubuntu Bangladesh
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd


Re: [Ubuntu-BD] Graphical frontend of GDB

2012-02-19 Thread Nasimul Haque
On 19 February 2012 13:41, Junayeed Ahnaf Nirjhor
 wrote:
> Our varsity use VS 2010 and XCode , but I use my own laptop (gcc, g++ with
> sublime). They are generous enough to honor us by letting us use our tools
> even during tests.

A very good news that is! In our times, we were bound to use whatever
the teacher chose for us. :(

DDD is a good frontend for gdb. http://www.gnu.org/software/ddd/

OT: SublimeText2 is not released yet, and it is a closed source
project. It'll also cost money when it is released. I hope it will not
die like textmate. TextMate is a great example of why closed-source
projects are risky to use. It only lived a couple of years, while vim,
emacs are there for forever, improving every now and then.


-- 
M. Nasimul Haque
Appliansys, Coventry, UK
http://www.nasim.me.uk

-- 
Ubuntu Bangladesh
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd


Re: [Ubuntu-BD] Graphical frontend of GDB

2012-02-19 Thread Junayeed Ahnaf Nirjhor

On 02/19/2012 07:38 PM, maSnun wrote:

Visual Studio is the best IDE I have ever used. Never used Visual C++ so
can't comment. But I strongly recommend not to use it if you want to learn
C or C++ well. Besides Microsoft's implementation of C++ is quite different
from the GNU implementation from what I heard.

Yes that's why I don't want to use IDE. After I learn a language, I 
might want to shift to an IDE to get a productivity boost, but not 
before that.


Our varsity use VS 2010 and XCode , but I use my own laptop (gcc, g++ 
with sublime). They are generous enough to honor us by letting us use 
our tools even during tests.

--
Junayeed Ahnaf Nirjhor
Core Developer Intern, Diaspora
Twitter - Nirjhor 
--
Ubuntu Bangladesh
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd


Re: [Ubuntu-BD] Graphical frontend of GDB

2012-02-19 Thread maSnun
Visual Studio is the best IDE I have ever used. Never used Visual C++ so
can't comment. But I strongly recommend not to use it if you want to learn
C or C++ well. Besides Microsoft's implementation of C++ is quite different
from the GNU implementation from what I heard.

On Sun, Feb 19, 2012 at 7:32 PM, Md. Enzam Hossain wrote:

> Try codeblocks then, lightweight.
>
> I heard (and saw) Visual Studio 2010 is great but haven't used it.
>
> --Regards
> Enzam
>
>
> On Sun, Feb 19, 2012 at 7:29 PM, Junayeed Ahnaf Nirjhor <
> zombiegenera...@aol.com> wrote:
>
> > On 02/19/2012 07:24 PM, Md. Enzam Hossain wrote:
> >
> >> If you need integrated support with IDE, Codeblocks is a good option.
> >> If you don't have a problem with heavy IDE, give Eclipse a try, it's
> >> better.
> >>
> >> Haven't used any standalone frontend of GDB.
> >>
> >> --Regards
> >> Enzam
> >>
> >>
> >> On Sun, Feb 19, 2012 at 7:16 PM, Junayeed Ahnaf Nirjhor<
> >> zombiegenera...@aol.com>  wrote:
> >>
> >>  Hello,
> >>>
> >>> A quick terse question: Is there any graphical frontend of GDB (GNU
> >>> Debugger) ??
> >>> --
> >>> Junayeed Ahnaf Nirjhor
> >>> Core Developer Intern, Diaspora
> >>> Twitter - Nirjhor http://twitter.com/nirjhor>
> >>> >
> >>> --
> >>> Ubuntu Bangladesh
> >>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd<
> https://lists.ubuntu.com/**mailman/listinfo/ubuntu-bd>
> >>>  https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd>
> >>> >
> >>>
> >>>  I use sublime text (Textmate clone ) and seem to really love it. The
> > idea is to sticking to a text editor and utilize the debugging facility,
> in
> > a crisp way :)
> >
> > I don't code in C/CPP . Varsity projects are too small to code on an IDE
> >  IMO :-)
> >
> > How is visual studio 2010 , just asking.
> >
> >
> > --
> > Junayeed Ahnaf Nirjhor
> > Core Developer Intern, Diaspora
> > Twitter - Nirjhor 
> > --
> > Ubuntu Bangladesh
> > https://lists.ubuntu.com/**mailman/listinfo/ubuntu-bd<
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd>
> >
> --
> Ubuntu Bangladesh
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd
>



-- 
Abu Ashraf Masnun | +8801711960803 | http://masnun.com 
-- 
Ubuntu Bangladesh
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd


Re: [Ubuntu-BD] Graphical frontend of GDB

2012-02-19 Thread Md. Enzam Hossain
Try codeblocks then, lightweight.

I heard (and saw) Visual Studio 2010 is great but haven't used it.

--Regards
Enzam


On Sun, Feb 19, 2012 at 7:29 PM, Junayeed Ahnaf Nirjhor <
zombiegenera...@aol.com> wrote:

> On 02/19/2012 07:24 PM, Md. Enzam Hossain wrote:
>
>> If you need integrated support with IDE, Codeblocks is a good option.
>> If you don't have a problem with heavy IDE, give Eclipse a try, it's
>> better.
>>
>> Haven't used any standalone frontend of GDB.
>>
>> --Regards
>> Enzam
>>
>>
>> On Sun, Feb 19, 2012 at 7:16 PM, Junayeed Ahnaf Nirjhor<
>> zombiegenera...@aol.com>  wrote:
>>
>>  Hello,
>>>
>>> A quick terse question: Is there any graphical frontend of GDB (GNU
>>> Debugger) ??
>>> --
>>> Junayeed Ahnaf Nirjhor
>>> Core Developer Intern, Diaspora
>>> Twitter - Nirjhor
>>> >
>>> --
>>> Ubuntu Bangladesh
>>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd
>>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd>
>>> >
>>>
>>>  I use sublime text (Textmate clone ) and seem to really love it. The
> idea is to sticking to a text editor and utilize the debugging facility, in
> a crisp way :)
>
> I don't code in C/CPP . Varsity projects are too small to code on an IDE
>  IMO :-)
>
> How is visual studio 2010 , just asking.
>
>
> --
> Junayeed Ahnaf Nirjhor
> Core Developer Intern, Diaspora
> Twitter - Nirjhor 
> --
> Ubuntu Bangladesh
> https://lists.ubuntu.com/**mailman/listinfo/ubuntu-bd
>
-- 
Ubuntu Bangladesh
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd


Re: [Ubuntu-BD] Graphical frontend of GDB

2012-02-19 Thread Junayeed Ahnaf Nirjhor

On 02/19/2012 07:24 PM, Md. Enzam Hossain wrote:

If you need integrated support with IDE, Codeblocks is a good option.
If you don't have a problem with heavy IDE, give Eclipse a try, it's better.

Haven't used any standalone frontend of GDB.

--Regards
Enzam


On Sun, Feb 19, 2012 at 7:16 PM, Junayeed Ahnaf Nirjhor<
zombiegenera...@aol.com>  wrote:


Hello,

A quick terse question: Is there any graphical frontend of GDB (GNU
Debugger) ??
--
Junayeed Ahnaf Nirjhor
Core Developer Intern, Diaspora
Twitter - Nirjhor
--
Ubuntu Bangladesh
https://lists.ubuntu.com/**mailman/listinfo/ubuntu-bd

I use sublime text (Textmate clone ) and seem to really love it. The 
idea is to sticking to a text editor and utilize the debugging facility, 
in a crisp way :)


I don't code in C/CPP . Varsity projects are too small to code on an 
IDE  IMO :-)


How is visual studio 2010 , just asking.

--
Junayeed Ahnaf Nirjhor
Core Developer Intern, Diaspora
Twitter - Nirjhor 
--
Ubuntu Bangladesh
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd


Re: [Ubuntu-BD] Graphical frontend of GDB

2012-02-19 Thread Md. Enzam Hossain
If you need integrated support with IDE, Codeblocks is a good option.
If you don't have a problem with heavy IDE, give Eclipse a try, it's better.

Haven't used any standalone frontend of GDB.

--Regards
Enzam


On Sun, Feb 19, 2012 at 7:16 PM, Junayeed Ahnaf Nirjhor <
zombiegenera...@aol.com> wrote:

> Hello,
>
> A quick terse question: Is there any graphical frontend of GDB (GNU
> Debugger) ??
> --
> Junayeed Ahnaf Nirjhor
> Core Developer Intern, Diaspora
> Twitter - Nirjhor 
> --
> Ubuntu Bangladesh
> https://lists.ubuntu.com/**mailman/listinfo/ubuntu-bd
>
-- 
Ubuntu Bangladesh
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd