How To : Using Debugging

Page Status: Beta
Jump to: navigation, search

Back to Concepts and HOW TOs

Contents

[edit] Description

This document describes how to use debugging in Bungee Builder.

[edit] Prerequisites

Understanding Simulate and Debug
Overview : Building a Bungee-powered Application
Introduction to Bungee Builder
Adding a Class to a Project
Adding a Function to a Class
Working with Bungee Logic
Simulating Your Project or Application

[edit] Procedures

[edit] Setting a Breakpoint

Breakpoints enable you to examine the state of your application at a specific point so that you can debug your code.

To set a breakpoint:

  1. Open a code view of your class or function (double-click on the class or function in the Solution Explorer or Solution Details).
  2. Select the code statement where you want to stop code execution when you are debugging.
  3. On the far right of the top pane of the Property Editor, select Set Breakpoint. A red dot appears at the beginning of the line.
  4. When you debug your application, the breakpoints halt execution, and pop up a window that shows the state of program statements.

[edit] Debugging a Project

To debug a project:

  1. Set breakpoints in your code.
  2. Make sure a form that represents the code in which you set breakpoints is displayed in the Design Editor.
  3. In the Run toolbar at the top of the Design Editor, click the Run with debug button.
  4. The Debugger window is invoked together with your form.
  5. Interact with your form. When a breakpoint is encountered, use the Debugger window to step through your code, or view events, etc. to debug your code.

[edit] Error Handling

 

[edit] Examples

Breakpoint set in code:

 

[edit] Next Steps

Posting, Sharing, Deploying, and Managing your Applications

[edit] Tags

    Copyright © 2005 - 2008 Bungee Labs. All rights reserved.