Lesson 1: Connecting to a database and starting the debugger

 Start the debugger
  1. Create a directory to hold the copy of the sample database you will use in this tutorial, for example c:\demodb.

  2. Run the following command to create a copy of the sample database:

    newdemo c:\demodb\demo.db
  3. Click Start » Programs » SQL Anywhere 12 » Administration Tools » Sybase Central.

  4. Click Connections » Connect With SQL Anywhere 12.

  5. In the User ID field, type DBA and in the Password field, type sql.

  6. In the Action dropdown list, click Start And Connect To A Database On This Computer.

  7. In the Database File field, type c:\demodb\demo.db.

  8. In the Server Name field, type demo_server.

  9. Click Connect.

  10. Click Mode » Debug.

  11. In the Which User Would You Like To Debug field, type * and click OK.

    If you want to debug a different user, you must exit Debug mode, and then re-enter Debug mode.

    The Debugger Details pane appears at the bottom of Sybase Central and the Sybase Central toolbar displays a set of debugger tools.

    When you provide a user name, information for connections with that user name is captured and appears on the Connections tab.

    The Debugger Details pane.
  12. (optional) Restore the sample database (demo.db) to its original state.

 See also