SlideShare a Scribd company logo
 To control where your program stops running you will have to set breakpoints.
 The simplest way to set a breakpoint is with Debug-Toggle-Breakpoint.
 Move the cursor to line 28, scanf("%d %d", &A, &B).
 Turbo debugger highlights the line, indicating there is a breakpoint set on it. Now select Debug-
Run or press Ctrl-F9 to execute your program without interruption
 . The program stops at line 28. What has happened is, the debugger has executed the intervening
statements, from printf("Enter two integer numbers, A & B: "); to scanf("%d %d",&A, &B);
 When debugging a program, it sometimes becomes necessary to check the inner workings of a function to
ensure its correctness.
 Select Debug-Trace Into or press F7 when the program has stopped at a statement containing the function
call.
 TDW traces into the function, if it is accessible to the debugger and highlights the first statement in the
function.
 Set a breakpoint at the line sum = Add(A, B);
 In our program, the execution will now stop at this statement when resumed.
 This statement contains a call to the function Add. Press F7 to trace into function Add.
 The first statementreturn A + B; in the function is now highlighted. Press F8 to resume execution.
 The function now returns control to the calling routine. The statement diff = Subtract(A,B); , following the
statement sum = Add(A,B); is now highlighted.
 The Watches window can be opened by selecting the View-Options and it shows the value of
variables you specify.
 For example, to watch the value of the variable sum, move the cursor to the variable name on
line 30.
 Then choose Debug-Add watch or press Ctrl F5.
 The variable sum now appears in the Watches window along with its type and value.
 As you execute the program, Turbo debugger updates this value to reflect the variable's current
value.
 Once you have stopped your program, there are a number of ways of looking at data using the Inspect
command.
 This very powerful facility lets you examine data structures in the same way that you visualize them when
you write a program.
 The Debug-Inspect... command lets you examine any variable you specify.
 Suppose you want to look at the value of the variable prod Move the cursor below the variable and
choose Debug-Inspect...
 An Inspector window pops up.
 The first line tells you the variable name and type of data stored in it; the second line shows its value and
the address in memory.
 A compound data object such as an array or structure, contains multiple components.
 The variable pairs is a compound object. It is an array of records.
 To examine its content, invoke the Inspector window as described above.
 The Inspector window shows the values of the 20 elements of pairs.
 Use the arrow keys to scroll through the 20 elements.
 The title of the window shows the name of the data you are inspecting.
 A new Inspector window appears, showing the contents of that element in the array.
 The Inspector window shows the contents of a record of type integerpair.
 If one of these were in turn a compound data object, you could issue an Inspect command and dig down further into the data
structure
Debugger Of Turbo C
Debugger Of Turbo C
Debugger Of Turbo C
Debugger Of Turbo C

More Related Content

What's hot

Zero values in Priority tables - a blessing and a curse
Zero values in Priority tables - a blessing and a curseZero values in Priority tables - a blessing and a curse
Zero values in Priority tables - a blessing and a curse
No'am Newman
 
Global variables, sorting static variables,function and arrays,
Global variables, sorting static variables,function and arrays,Global variables, sorting static variables,function and arrays,
Global variables, sorting static variables,function and arrays,
Ahmad55ali
 

What's hot (20)

cp Module4(1)
cp Module4(1)cp Module4(1)
cp Module4(1)
 
escape sequences and substitution markers
escape sequences and substitution markersescape sequences and substitution markers
escape sequences and substitution markers
 
CHAPTER 4
CHAPTER 4CHAPTER 4
CHAPTER 4
 
Zero values in Priority tables - a blessing and a curse
Zero values in Priority tables - a blessing and a curseZero values in Priority tables - a blessing and a curse
Zero values in Priority tables - a blessing and a curse
 
Input Output Management In C Programming
Input Output Management In C ProgrammingInput Output Management In C Programming
Input Output Management In C Programming
 
Matlab syntax
Matlab syntaxMatlab syntax
Matlab syntax
 
Data Input and Output
Data Input and OutputData Input and Output
Data Input and Output
 
First c program
First c programFirst c program
First c program
 
Apolo
ApoloApolo
Apolo
 
Basic Input and Output
Basic Input and OutputBasic Input and Output
Basic Input and Output
 
How to make multi level hierarchical picklists in Siebel
How to make multi level hierarchical picklists in SiebelHow to make multi level hierarchical picklists in Siebel
How to make multi level hierarchical picklists in Siebel
 
Programming qns
Programming qnsProgramming qns
Programming qns
 
Array menu
Array menuArray menu
Array menu
 
Vs c# lecture7 2
Vs c# lecture7  2Vs c# lecture7  2
Vs c# lecture7 2
 
Vp lecture 9 ararat
Vp lecture 9 araratVp lecture 9 ararat
Vp lecture 9 ararat
 
Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programming
 
Global variables, sorting static variables,function and arrays,
Global variables, sorting static variables,function and arrays,Global variables, sorting static variables,function and arrays,
Global variables, sorting static variables,function and arrays,
 
Cinfo
CinfoCinfo
Cinfo
 
Stack operations using array
Stack operations using arrayStack operations using array
Stack operations using array
 
Managing input and output operations in c
Managing input and output operations in cManaging input and output operations in c
Managing input and output operations in c
 

Viewers also liked

AMEXCAN NCCGP 2013
AMEXCAN NCCGP 2013AMEXCAN NCCGP 2013
AMEXCAN NCCGP 2013
NCCGP
 
Onethoritalia Massimo Gentile
Onethoritalia Massimo GentileOnethoritalia Massimo Gentile
Onethoritalia Massimo Gentile
Massimo Gentile
 
Final presentation
Final presentationFinal presentation
Final presentation
abhi2088
 
It presentation
It presentationIt presentation
It presentation
Tung0316
 
Nurturing CGs Keynote NCCGP 2013
Nurturing CGs Keynote NCCGP 2013Nurturing CGs Keynote NCCGP 2013
Nurturing CGs Keynote NCCGP 2013
NCCGP
 
Sheryl presentation 5 26 11 version 5 sh2
Sheryl presentation 5 26 11 version 5 sh2Sheryl presentation 5 26 11 version 5 sh2
Sheryl presentation 5 26 11 version 5 sh2
Taylor Johnson
 
Reviewing article
Reviewing articleReviewing article
Reviewing article
Callum Ward
 

Viewers also liked (20)

Modified project -
Modified project -Modified project -
Modified project -
 
TECNICAS DE AMPLIFICACAO DE ACIDOS NUCLEICOS
TECNICAS DE AMPLIFICACAO DE ACIDOS NUCLEICOSTECNICAS DE AMPLIFICACAO DE ACIDOS NUCLEICOS
TECNICAS DE AMPLIFICACAO DE ACIDOS NUCLEICOS
 
1234mokuit
1234mokuit1234mokuit
1234mokuit
 
AIPF 2016
AIPF 2016AIPF 2016
AIPF 2016
 
Brief (1)
Brief (1)Brief (1)
Brief (1)
 
AMEXCAN NCCGP 2013
AMEXCAN NCCGP 2013AMEXCAN NCCGP 2013
AMEXCAN NCCGP 2013
 
Jangan jadi penulis
Jangan jadi penulisJangan jadi penulis
Jangan jadi penulis
 
Mule esb
Mule esbMule esb
Mule esb
 
Onethoritalia Massimo Gentile
Onethoritalia Massimo GentileOnethoritalia Massimo Gentile
Onethoritalia Massimo Gentile
 
Home town sustainability
Home town sustainabilityHome town sustainability
Home town sustainability
 
Final presentation
Final presentationFinal presentation
Final presentation
 
EL FUTURO DE LA EDUCACIÓN SUPERIOR
EL FUTURO DE LA EDUCACIÓN SUPERIOREL FUTURO DE LA EDUCACIÓN SUPERIOR
EL FUTURO DE LA EDUCACIÓN SUPERIOR
 
Ergonomia
ErgonomiaErgonomia
Ergonomia
 
It presentation
It presentationIt presentation
It presentation
 
Process mining tools and defines
Process mining tools and definesProcess mining tools and defines
Process mining tools and defines
 
Nurturing CGs Keynote NCCGP 2013
Nurturing CGs Keynote NCCGP 2013Nurturing CGs Keynote NCCGP 2013
Nurturing CGs Keynote NCCGP 2013
 
The four operations
The four operationsThe four operations
The four operations
 
Sheryl presentation 5 26 11 version 5 sh2
Sheryl presentation 5 26 11 version 5 sh2Sheryl presentation 5 26 11 version 5 sh2
Sheryl presentation 5 26 11 version 5 sh2
 
Reviewing article
Reviewing articleReviewing article
Reviewing article
 
Article on GST - ICSI Souvenir of 43rd National Convention
Article on GST - ICSI Souvenir of 43rd National ConventionArticle on GST - ICSI Souvenir of 43rd National Convention
Article on GST - ICSI Souvenir of 43rd National Convention
 

Similar to Debugger Of Turbo C

Calculator 2
Calculator 2Calculator 2
Calculator 2
livecode
 
someone help Python programming After the loop ends, return the expe.pdf
someone help Python programming After the loop ends, return the expe.pdfsomeone help Python programming After the loop ends, return the expe.pdf
someone help Python programming After the loop ends, return the expe.pdf
ishratmanzar1986
 
Practicalfileofvb workshop
Practicalfileofvb workshopPracticalfileofvb workshop
Practicalfileofvb workshop
dhi her
 
INTRODUCTION The goal of this programming project is to entble studen.pdf
 INTRODUCTION The goal of this programming project is to entble studen.pdf INTRODUCTION The goal of this programming project is to entble studen.pdf
INTRODUCTION The goal of this programming project is to entble studen.pdf
ameancal
 
Diving into VS 2015 Day5
Diving into VS 2015 Day5Diving into VS 2015 Day5
Diving into VS 2015 Day5
Akhil Mittal
 
Fundamentals of Programming Lecture #1.pptx
Fundamentals of Programming Lecture #1.pptxFundamentals of Programming Lecture #1.pptx
Fundamentals of Programming Lecture #1.pptx
Eyasu46
 
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docxAssignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
ssuser562afc1
 

Similar to Debugger Of Turbo C (20)

Debugger & Profiler in NetBeans
Debugger & Profiler in NetBeansDebugger & Profiler in NetBeans
Debugger & Profiler in NetBeans
 
Calculator 2
Calculator 2Calculator 2
Calculator 2
 
Maxbox starter
Maxbox starterMaxbox starter
Maxbox starter
 
Sample for Simple C Program - R.D.Sivakumar
Sample for Simple C Program - R.D.SivakumarSample for Simple C Program - R.D.Sivakumar
Sample for Simple C Program - R.D.Sivakumar
 
someone help Python programming After the loop ends, return the expe.pdf
someone help Python programming After the loop ends, return the expe.pdfsomeone help Python programming After the loop ends, return the expe.pdf
someone help Python programming After the loop ends, return the expe.pdf
 
Practicalfileofvb workshop
Practicalfileofvb workshopPracticalfileofvb workshop
Practicalfileofvb workshop
 
Module iii part i
Module iii part iModule iii part i
Module iii part i
 
INTRODUCTION The goal of this programming project is to entble studen.pdf
 INTRODUCTION The goal of this programming project is to entble studen.pdf INTRODUCTION The goal of this programming project is to entble studen.pdf
INTRODUCTION The goal of this programming project is to entble studen.pdf
 
Diving into VS 2015 Day5
Diving into VS 2015 Day5Diving into VS 2015 Day5
Diving into VS 2015 Day5
 
3. control statements
3. control statements3. control statements
3. control statements
 
Programming in Matlab.ppt
Programming in Matlab.pptProgramming in Matlab.ppt
Programming in Matlab.ppt
 
Fundamentals of Programming Lecture #1.pptx
Fundamentals of Programming Lecture #1.pptxFundamentals of Programming Lecture #1.pptx
Fundamentals of Programming Lecture #1.pptx
 
Introduction to Basic C programming 01
Introduction to Basic C programming 01Introduction to Basic C programming 01
Introduction to Basic C programming 01
 
Programming basics
Programming basicsProgramming basics
Programming basics
 
GUI Programming in JAVA (Using Netbeans) - A Review
GUI Programming in JAVA (Using Netbeans) -  A ReviewGUI Programming in JAVA (Using Netbeans) -  A Review
GUI Programming in JAVA (Using Netbeans) - A Review
 
Tutorials2
Tutorials2Tutorials2
Tutorials2
 
maXbox Starter 36 Software Testing
maXbox Starter 36 Software TestingmaXbox Starter 36 Software Testing
maXbox Starter 36 Software Testing
 
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docxAssignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
 
222066369 clad-study-guide
222066369 clad-study-guide222066369 clad-study-guide
222066369 clad-study-guide
 
Intro to ios - init by SLOHacks
Intro to ios - init by SLOHacksIntro to ios - init by SLOHacks
Intro to ios - init by SLOHacks
 

Recently uploaded

Recently uploaded (20)

In-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT ProfessionalsIn-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT Professionals
 
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 

Debugger Of Turbo C

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.  To control where your program stops running you will have to set breakpoints.  The simplest way to set a breakpoint is with Debug-Toggle-Breakpoint.  Move the cursor to line 28, scanf("%d %d", &A, &B).  Turbo debugger highlights the line, indicating there is a breakpoint set on it. Now select Debug- Run or press Ctrl-F9 to execute your program without interruption  . The program stops at line 28. What has happened is, the debugger has executed the intervening statements, from printf("Enter two integer numbers, A & B: "); to scanf("%d %d",&A, &B);
  • 16.
  • 17.  When debugging a program, it sometimes becomes necessary to check the inner workings of a function to ensure its correctness.  Select Debug-Trace Into or press F7 when the program has stopped at a statement containing the function call.  TDW traces into the function, if it is accessible to the debugger and highlights the first statement in the function.  Set a breakpoint at the line sum = Add(A, B);  In our program, the execution will now stop at this statement when resumed.  This statement contains a call to the function Add. Press F7 to trace into function Add.  The first statementreturn A + B; in the function is now highlighted. Press F8 to resume execution.  The function now returns control to the calling routine. The statement diff = Subtract(A,B); , following the statement sum = Add(A,B); is now highlighted.
  • 18.  The Watches window can be opened by selecting the View-Options and it shows the value of variables you specify.  For example, to watch the value of the variable sum, move the cursor to the variable name on line 30.  Then choose Debug-Add watch or press Ctrl F5.  The variable sum now appears in the Watches window along with its type and value.  As you execute the program, Turbo debugger updates this value to reflect the variable's current value.
  • 19.  Once you have stopped your program, there are a number of ways of looking at data using the Inspect command.  This very powerful facility lets you examine data structures in the same way that you visualize them when you write a program.  The Debug-Inspect... command lets you examine any variable you specify.  Suppose you want to look at the value of the variable prod Move the cursor below the variable and choose Debug-Inspect...  An Inspector window pops up.  The first line tells you the variable name and type of data stored in it; the second line shows its value and the address in memory.
  • 20.  A compound data object such as an array or structure, contains multiple components.  The variable pairs is a compound object. It is an array of records.  To examine its content, invoke the Inspector window as described above.  The Inspector window shows the values of the 20 elements of pairs.  Use the arrow keys to scroll through the 20 elements.  The title of the window shows the name of the data you are inspecting.  A new Inspector window appears, showing the contents of that element in the array.  The Inspector window shows the contents of a record of type integerpair.  If one of these were in turn a compound data object, you could issue an Inspect command and dig down further into the data structure