From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suciu Flavius Subject: Re: Line by Line debug in linux. Date: Sat, 02 Oct 2004 09:36:33 -0700 Sender: linux-c-programming-owner@vger.kernel.org Message-ID: References: <36a2bb3d0410012346468e9cdf@mail.gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <36a2bb3d0410012346468e9cdf@mail.gmail.com> List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-c-programming@vger.kernel.org Hi again, 1. try gdb if you like console, or with gdb+ddd for a much more GUI approaching http://www.gnu.org/software/ddd/ You can run ddd and gdb under cygwin as far I know. 2. yes, -g => for debug informations -g -pg => for profiling, if you want ;) Regards. mojtaba mahdavi wrote: > Hi. All. > > As I told before I am ( want not to be ) a windows programmer (not expert). > > There (in windows) I could debug my program line by line and watch > execution of my program line by line and could see variables and > more... > > 1- Now how can I use same approach in linux. ( Is there any tutorials on web? ) > 2- Should I use some more option when compie my codes ?? > > Now I am using cygwin since I am in a migration cycle for my project ?? > > > Sincerely all linux programmers > > mahdavi. > - > To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >