answersLogoWhite

0


Best Answer

If your question is: 'how to debug in linux', then the answer:

1. compile and link with debug information (option -g)

2. load the program with the debugger: gdb ./myprog

3. enter the following commands at the (gdb) prompt:

break main | linenumber | function

run arguments

s[tep]

n[ext]

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you trace the execution of a program in CC?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is Program execution in operating system?

Program Execution means that you open or run a program installed at the computer. my question how to do program execution


What is the meaning of execution and terminating the programmes?

execution is the process by which a computer carries out the instructions of a computer program. terminating program is to stop the program from execution.


What are the execution tasks of the PR process?

you can trace the lineage of the of the nco


What is meant by flow of execution a program?

That means to load a computer program into a computer's memory, and have the computer carry out the instructions in the program.


What is executive a c program?

I think it is 'execution of a C program'.


What is execution of program?

Exec. Of program is the compilation of document or the run of a type program.


What is persistence in oops explain with example?

The phenomenon where the object outlives the program execution time & exists between execution of a program is known as persistance


What is the name of a program execution mode in which a program scans its data from a file?

Batch Mode.


How do you find execution time of a program in java?

You can have the below line as the first and last line of the program and find out the difference in time taken to calculate the execution time. This will print the system time in the console which can be used to calculate execution time.System.currentTimeMillis();


Who is responsible for the implementation and execution of the Government Travel Charge Card program?

Agency Program Coordinators.


What is Purpose of system program?

System programs provide a convenient environment for program development and execution.


What part of the CPU stores program instructions during the execution of the program?

the microprocessor