Skip to contentSkip to conversation

Line by Line debug in linux.

DISCUSSION mojtaba mahdavi 3 participants 4 messages Oct 2, 2004

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw

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.

Quoted 21 lines · mojtaba mahdavi

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 1 line · Suciu Flavius

You can run ddd and gdb under cygwin as far I know.

There is a graphical version of gdb called insight, which is used by MS Windows gdb users.

http://sources.redhat.com/insight/

Folks like the people at Xilinx use insight for their tools (which is what I'm pointing out in the sentence above by users of gdb on Windows) and it works quite nicely.

Jon.

#3 lore raw

Thanks in advance.

Best of regards.

I will follow your guide lines.

Quoted 22 lines · Jon Masters
Quoted 1 line · Suciu Flavius

You can run ddd and gdb under cygwin as far I know.

There is a graphical version of gdb called insight, which is used by MS Windows gdb users.

http://sources.redhat.com/insight/

Folks like the people at Xilinx use insight for their tools (which is what I'm pointing out in the sentence above by users of gdb on Windows) and it works quite nicely.

Jon.

-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 1 line
(>:<)