pebble
  • Tutorials
  • Get the SDK
  • Guides
  • Documentation
  • Examples
  • Community
  • Blog
  • More
Privacy
Cookies
Publish

Guides

  • Table of Contents
  • App Resources
  • Appstore Publishing
  • Best Practices
  • Communication
  • Debugging
    • Common Runtime Errors
    • Common Syntax Errors
    • Debugging with App Logs
    • Debugging with GDB
  • Design and Interaction
  • Events and Services
  • Graphics and Animations
  • Migrating Older Apps
  • Pebble Packages
  • Pebble Timeline
  • Rocky.js
  • Smartstraps
  • Tools and Resources
  • User Interfaces

Debugging

When writing apps, everyone makes mistakes. Sometimes a simple typo or omission can lead to all kinds of mysterious behavior or crashes. The guides in this section are aimed at trying to help developers identify and fix a variety of issues that can arise when writing C code (compile-time) or running the compiled app on Pebble (runtime).

There are also a few strategies outlined here, such as app logging and other features of the pebble Command Line Tool that can indicate the source of a problem in the vast majority of cases.

Contents

  • Common Runtime Errors - Examples of commonly encountered runtime problems that cannot be detected at compile time and can usually be fixed by logical thought and experimentation.

  • Common Syntax Errors - Details of common problems encountered when writing C apps for Pebble, and how to resolve them.

  • Debugging with App Logs - How to use the app logs to debug problems with an app, as well as tips on interpreting common run time errors.

  • Debugging with GDB - How to use GDB to debug a Pebble app in the emulator.

Related SDK Docs

  • Logging