Skip to main content

Featured post

Background Work with WorkManager - Java

Background Work with WorkManager - Java WorkManager is a compatible, flexible, and simple library for deferred background work that is covered in this codelab. WorkManager is the recommended task scheduler on Android for deferred work that must be completed. Description In this course, you will : Adding WorkManager to your project Scheduling a simple task Input and output parameters Chaining work Unique work Displaying work status in the UI Cancelling work Work constraints Syllabus : Add WorkManager to your app Make your first WorkRequest Add Input and Output ...

[100% FREE] An introduction to debugging C and Java

An introduction to debugging C and Java

Learn how to debug broken programs from the terminal and within an IDE

Description

In this course,you will learn:-

  • Students will be able to write clean,legible programmes that make debugging considerably easier by the end of this course.
  • Students will be able to utilise GDB to detect and correct faults in C programmes at the end of this course.
  • Students will be able to utilise Eclipse to detect and fix faults in Java programmes by the end of the course.

Syllabus:-

  • Course Breakdown
  • Syntax highlighting
  • Giving variables clear names
  • Don't Repeat Yourself (The DRY Rule)
  • Adding a for loop to remove repeated code
  • Practice:Adding for loops to improve readability
  • Adding a function to remove repeated code
  • When and where to add comments to the program
  • How to comment in common programming languages
  • Making functions as short as possible
  • Practice:Splitting a large function into multiple smaller functions
  • Formatting code properly
  • Putting similar blocks of code together
  • Indentation and line length
  • The golden rules of writing readable programs
  • Compiling C programs
  • Opening a terminal
  • Installing GDB on Linux
  • Installing LLDB On Mac
  • Installing GDB on Windows
  • Using onlinegdb.com
  • The essential GDB commands
  • Breakpoints and Watchpoints
  • Extra GDB Commands
  • Summary of all the GDB commands
  • Practice:Using GDB to fix common errors in C
  • Program 1
  • Program 2
  • Program 3
  • Using JDB - An alternative to Eclipse
  • Installing Eclipse on Mac and Windows
  • Installing Eclipse on Linux
  • Debugging our first program in Eclipse
  • Adding breakpoints in Eclipse
  • Adding watchpoints in Eclipse
  • Exception Breakpoints
  • Watching Expressions
  • Display data collections whilst debugging
  • A summary of debugging Java programs in Eclipse
  • Practice:Using Eclipse to debug some simple Java programs
  • Program 1
  • Program 2
  • Program 3



Comments

Popular Posts