all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andrea Crotti <andrea.crotti.0@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: c/c++ project management and debugging
Date: Tue, 21 Dec 2010 13:30:36 +0100	[thread overview]
Message-ID: <m1fwtrgvf7.fsf@ip1-201.halifax.rwth-aachen.de> (raw)
In-Reply-To: 4D1096CC.5030904@gmail.com

Rajinder Yadav <devguy.ca@gmail.com> writes:

> Andrea, thanks for your reply!
>
> My reply here is not a direct response to you, but what i feel in
> general (a windows IDE guy in a Linux command line world)
>
> I don't quite understand the rational against emacs + auto makefile
> generation, it kind of hinders progress imho? if someone doesn't like
> the way emacs or netbean does things (for them) with makefiles, they
> always have the choice of doing it by hand, that is the beauty of
> having more choices, so stop taking away my choices if I simply ask or
> enquire for feature y!
>
> guys like me from the visual IDE environment will have a smaller
> barrier to entry as a result, overtime we will pickup said skills of
> making a makefile by hand, using autoconf or cmake, etc.
>
> i've never had the need to create a makefile or edit one by hand when
> i code using visualstudio, all i care about is coding my project in
> C++ and getting on with life. people like me need a bridge when we
> come over to the open source world, when we start using linux or
> emacs, etc. most of the time we are met with ridicule about how absurd
> our needs and demands are, so opportunity is lost when some decide why
> bother with open source, etc. el
>
> i love ruby on rails hacking, i love doing everything from the command
> line, it's more faster and efficient coding a rails app when compared
> to doing it with netbeans + ide, or whatever IDE is out there!
>
> i can tell you i spent countless hours searching the net and reading
> stuff just to figure out how to use emacs and get it setup with stuffs
> like ido, ecb, cedet and yasnippet learning all the key binding and
> how to edit the .emacs files, the barrier to entry to become more
> efficient with "emacs" is high
>
> i like having ecb for file browsing, i don't always use it, sometimes
> i use the file searching power of ido, but i have a choice when to use
> which in emacs
>
> i am very grateful to the open source community that has made emacs a
> better tool for me and many more that help answer all my questions on
> mailing list or write blogs.

Sure I perfectly understand your point of view, I also agree that it's
better to proceed step by step with everything, or we'll only get
frustrated by the this overcomplicated world.

I just mean that for a software developer programming is not enough, you
must also know your compiler well enough, and your build system.
Otherwise you will:
1. miss many opportunities to write/test much better your code
2. feel like you're using a black box, and be stuck on some product to
   build code that maybe would be perfectly portable everywhere.

> clicking for me doesn't set the breakpoint when i have the source file
> open in the buffer, i am still in edit mode?
>
> i see many gdb windows, but where do I type, b File.cpp:#line ??
>
> here is what i do
>
> 1. open a simple .cpp source file in emacs, a hello world file in C++
> 2. m-x gdb
>
> source buffer disappears, replaced by gdb buffer
>
> 3 m-x gdb-many-windows
> i still don't see my source code window? now where do i click to set a
> break point?
>
> if i switch the gdb buffer to display my source code buffer, i can't
> type in the gdb command while still looking at my source buffer? how
> is one to work in this kind of setup
>
> can i not have a source buffer and a gdb buffer open at the same time,
> still where do i click to set the break point?
>
> Thanks

Sorry clicking doesn't work for me either, what you should do is the
following

evaluate this or set it in your .emacs:
(setq gdb-many-windows t)

g++ -ggdb hello.cpp
M-x gdb RET
And it will prompt you how to run gdb, for example:
gdb --annotate=3 a.out

the annotate is very important otherwise emacs will not be able to
follow the execution.

then you should have on top the gud/gdb buffer, where you can type very
normal gdb commands.
Otherwise you open any source file and with "C-x space" you should be
able to set your breakpoints.

To know more just look in the GUD menu on top or the info page.




  reply	other threads:[~2010-12-21 12:30 UTC|newest]

Thread overview: 93+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-20 11:39 c/c++ project management and debugging Rajinder Yadav
2010-12-20 13:47 ` Andrea Crotti
2010-12-20 15:52   ` Suvayu Ali
     [not found]   ` <mailman.1.1292860380.13743.help-gnu-emacs@gnu.org>
2010-12-20 16:36     ` despen
2010-12-20 17:00       ` Jason Earl
2010-12-21  0:23   ` Rajinder Yadav
2010-12-21  1:28     ` Andrea Crotti
2010-12-21 12:00       ` Rajinder Yadav
2010-12-21 12:30         ` Andrea Crotti [this message]
2010-12-21 12:27       ` Rajinder Yadav
     [not found]       ` <mailman.3.1292932824.3904.help-gnu-emacs@gnu.org>
2010-12-21 13:10         ` Elena
2010-12-21 13:35           ` Elena
2010-12-21 14:06             ` Andrea Crotti
     [not found]             ` <mailman.5.1292940435.31822.help-gnu-emacs@gnu.org>
2010-12-21 14:25               ` Richard Riley
2010-12-21 20:26               ` Elena
2010-12-21 21:43                 ` Pascal J. Bourguignon
2010-12-22  8:19                   ` Elena
2010-12-22 15:54                   ` Richard Riley
2010-12-23  0:45                     ` Pascal J. Bourguignon
2010-12-23  8:34                       ` Elena
2010-12-23  8:38                         ` Pascal J. Bourguignon
2010-12-23  8:50                           ` Elena
2010-12-23 13:07                       ` Richard Riley
2010-12-23 13:32                         ` Pascal J. Bourguignon
2010-12-23 14:33                           ` Richard Riley
2010-12-23 13:35                         ` Elena
2010-12-24  5:42                         ` rusi
2010-12-24  8:58                         ` Gary
2010-12-24  9:05                         ` Gary
     [not found]                         ` <mailman.9.1293181132.17958.help-gnu-emacs@gnu.org>
2010-12-24 11:09                           ` Richard Riley
2010-12-24 11:35                             ` Elena
2011-01-10 10:07                             ` Gary
     [not found]                             ` <mailman.4.1294654218.11614.help-gnu-emacs@gnu.org>
2011-01-10 11:04                               ` Richard Riley
2011-01-10 12:37                                 ` Gary
2011-01-10 12:55                                 ` Pascal J. Bourguignon
2011-01-10 13:49                                   ` Richard Riley
2011-01-10 14:54                                     ` Le Wang
2011-01-10 15:30                                       ` Gary
     [not found]                                       ` <mailman.7.1294673476.7472.help-gnu-emacs@gnu.org>
2011-01-10 16:18                                         ` Richard Riley
2011-01-11  7:20                                           ` Gary
2011-01-11 16:55                                           ` Andreas Röhler
     [not found]                                           ` <mailman.0.1294764952.30016.help-gnu-emacs@gnu.org>
2011-01-11 17:56                                             ` rusi
     [not found]                                     ` <mailman.5.1294671316.7472.help-gnu-emacs@gnu.org>
2011-01-10 15:24                                       ` Richard Riley
     [not found]                         ` <mailman.11.1293181565.17958.help-gnu-emacs@gnu.org>
2010-12-24 11:12                           ` Richard Riley
     [not found]                         ` <mailman.13.1293183850.17958.help-gnu-emacs@gnu.org>
2010-12-24 11:15                           ` Richard Riley
2010-12-21 23:09                 ` Andrea Crotti
2010-12-21 21:42               ` Pascal J. Bourguignon
2010-12-21 14:30           ` Rajinder Yadav
     [not found]           ` <mailman.0.1292941865.1790.help-gnu-emacs@gnu.org>
2010-12-21 14:52             ` Richard Riley
2010-12-21 16:42               ` Rajinder Yadav
     [not found]               ` <mailman.3.1292949766.3175.help-gnu-emacs@gnu.org>
2010-12-21 20:35                 ` Elena
2010-12-21 21:51               ` Pascal J. Bourguignon
2010-12-22  8:28                 ` Elena
2010-12-22  8:50                   ` Elena
2010-12-22  9:48                     ` Pascal J. Bourguignon
2010-12-22 10:06                       ` Elena
2010-12-22 10:22                         ` Elena
2010-12-22 10:58                           ` Andrea Crotti
     [not found]                           ` <mailman.2.1293015509.3728.help-gnu-emacs@gnu.org>
2010-12-22 11:16                             ` Pascal J. Bourguignon
2010-12-22 12:38                               ` Elena
2010-12-22 13:32                                 ` Pascal J. Bourguignon
2010-12-22 13:51                                   ` Elena
2010-12-22 15:09                                     ` Andrea Crotti
2010-12-22 15:53                                     ` Pascal J. Bourguignon
2010-12-22 15:09                                 ` Helmut Eller
2010-12-22 21:46                                   ` Elena
2010-12-22 10:25                         ` Pascal J. Bourguignon
2010-12-22 12:34                           ` Elena
2010-12-22 13:04                             ` Andrea Crotti
     [not found]                             ` <mailman.8.1293023060.3728.help-gnu-emacs@gnu.org>
2010-12-22 13:29                               ` Elena
2010-12-22 14:12                                 ` Andrea Crotti
     [not found]                                 ` <mailman.3.1293027192.25158.help-gnu-emacs@gnu.org>
2010-12-22 14:43                                   ` Elena
2010-12-22 15:46                                     ` Andrea Crotti
2010-12-23 12:35                               ` Elena
2010-12-23 13:01                                 ` Eli Zaretskii
2010-12-24 11:38                                 ` Andrea Crotti
     [not found]                                 ` <mailman.2.1293190750.15516.help-gnu-emacs@gnu.org>
2010-12-24 12:55                                   ` Richard Riley
2010-12-24 14:18                                     ` Pascal J. Bourguignon
2010-12-24 14:32                                       ` Richard Riley
2010-12-25 16:17                                       ` rusi
2010-12-25 17:12                                         ` Pascal J. Bourguignon
2010-12-22 13:35                             ` Pascal J. Bourguignon
2010-12-22  9:57                     ` Andrea Crotti
2010-12-21 21:47             ` Pascal J. Bourguignon
2010-12-21 13:44         ` despen
2010-12-21 14:27           ` Richard Riley
2010-12-21 19:08         ` Jason Earl
2010-12-21 20:41           ` Elena
     [not found]   ` <mailman.14.1292891000.3394.help-gnu-emacs@gnu.org>
2010-12-21  5:13     ` Jason Earl
2010-12-21 14:36       ` Rajinder Yadav
2010-12-21 14:40         ` Rajinder Yadav
     [not found] <mailman.7.1292845153.32310.help-gnu-emacs@gnu.org>
2010-12-20 12:36 ` Elena
2011-01-11  8:55   ` Dmitriy Igrishin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1fwtrgvf7.fsf@ip1-201.halifax.rwth-aachen.de \
    --to=andrea.crotti.0@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.