|
From: Jonathan W. <jon...@gm...> - 2007-07-17 09:16:13
|
Adam,
OK no problem, sorry for the misunderstanding.
I'm not a _very_ proeficient gdb user myself... On the other hand if you're
using dev-cpp debug mode to 'peek inside', you're using gdb :-) (ok, command
line is 1337 but well :-P)
You can set breakpoints with dev-cpp also, instead of putting a pause.
Indeed, I sure have heard many of these things, and agree we should choose
wisely, these being useful in some cases.
I know your pain when debugging someone else's code (my worst: crazy
indentation and one-letter variables....)
I have to use my Amulet of obfuscation, +15 insight :P
Have a good day,
Jonathan
On 7/16/07, Adam Jones <aj...@i-...> wrote:
>
> Jonathan,
> Sorry Jonathan the post was for Arpit Jain, it was not directly at
> you personally. By mistake I put your name in instead of Arpit Jain. I do
> use system a fair amount to launch other programs or instruct the
> operating
> system to perform some tasks. I would as stated never use system("pause")
> in
> a release version of a software. As for gdb I am no fan. If I need to
> break
> a program to peek at the values of some variables at one point. I will
> insert system("pause') just to take a peek instead of using gdb. I am no
> gdb
> guru, and maybe I should became one.
>
> As you may already know, over my years of experience I have read
> and
> hear from many a programmer, you should never have global variables,
> #define, goto, etc. I understand their point of view, but if the
> programmer
> who is programming understands the tradeoffs they are making and using one
> of these items solves the problem
> and makes the code more readable and maintainable, then use it.
>
> I personally dislike when I have to debug someone's code and they
> have written it in such a fashion that I have to use my secret decoder
> ring
> :). I do agree with you in principle.
>
> -Adam Jones
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
--
<Morpheus> linux, c'est une question de VI ou de MORE
|