W2 - DebuggingaProgram withinsightdebugger Workshop2

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
    Debugging a Program  with insight debugger Workshop 2 C1117a Computer Programming
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    Outline Learn how to debug a program by Using insight debugger Set Breakpoints Watching variables Stepping through the program Programming style Assignment 1
Background image of page 2
    What is debug? Find problems (bugs) in a program Remove the bugs (debug) from the  program
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    Purposes of Debugger Help us to investigate the program Trace the program during execution Catch runtime errors efficiently In this tutorial, we will try to debug a  program with Insight Debugger
Background image of page 4
    Start Insight Debugger Download package file  (.zip) of insight  debugger Extract file (insight.zip) Double click  insight\insight.exe file
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    Key Features of Debugger Breakpoints Put a break in the program Execution pauses before the line with a  breakpoint Watching variables Tracks variable values during execution Stepping through the program Follow execution line by line
Background image of page 6
    Debugging Tool The  Debug  tab: Run Start program execution in debug mode Next Execute next line of code Continue Continue execution until next breakpoint
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    Debugging Tool Step Go into a function to execute the next line  of code Local Variables  Monitor the content of variables during  execution  Kill (Run(menu) -> Kill) End execution
Background image of page 8
    Debugging a program Insight Debugger need executable file  In Dev-C++, open the file  quadratic.cpp. Compile the program 
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 28

W2 - DebuggingaProgram withinsightdebugger Workshop2

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online