LinkedIn principal author Doug Winnie explains some of the basics of debugging your code. As a coder, you can send messages to yourself to monitor values and functions in your code. Depending on your tool or IDE, you can also interactively execute your code to investigate and monitor variables and objects as your executes code line-by-line. Finally, you can create errors, called exceptions, to allow coders and users tools to resolve issues.
- No programmer is perfect.…And along the way you will make mistakes…that will generate errors and bugs.…Part of being a programmer…is dealing with these types of issues,…and learning how you can debug your code.…There are a few ways you can go about fixing problems.…One common scenario is that you are going…through your program and you get a value…at the end that seems to be completely off.…For instance, maybe you are calculating a shopping cart.…And the total amount is crazy high.…Something is clearly wrong.…
But you can't find out where.…In your code, you can monitor the values of variables…by sending them to places in your app that can display text,…or send yourself messages as the program runs.…With these messages, you can pinpoint…where things go wrong and work to fix them.…There are also tools you can use…to control how your code runs.…Many developer coding tools called…Integrated Development Environments, or IDEs,…have a special debugging mode that allows you…to interactively run your code line by line.…
Join Doug Winnie as he explains the principles of programming and helps you connect to core concepts by exploring three ways that programmers perform their jobs. Doug starts by sharing the history of coding and then dives into functions, values, variables, and parameters used to define actions. He covers capturing input from users, creating conditional tests, using loops with arrays, and object-oriented programming basics. He also takes you beyond programming, into processes like debugging, refactoring, and building iteratively.
- Working with values and variables
- Breaking down tasks
- Customizing functions and parameters
- Building conditional tests
- Creating and changing arrays
- Working with objects and classes
- Debugging and refactoring code
- Going beyond the code as a programmer
Skill Level Beginner
1. Control Computers with Code
2. Define Actions Using Code
3. Repeat Actions and Test for Conditions
4. Objects and OOP
5. Beyond Programming
Debug problems2m 50s
Next steps1m 19s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.