Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » MobiLink - Server Administration » Writing Synchronization Scripts in .NET » Writing .NET synchronization logic

Handling MobiLink server errors with .NET Next Page

Debugging .NET synchronization logic


The following procedure describes one way you can debug your .NET scripts using Microsoft Visual Studio .NET.

To debug .NET scripts
  1. Compile your code with debugging information turned on:

  2. Close running instances of Visual Studio .NET that contain your source files.

    In the next step, you start a new Visual Studio .NET instance to debug the MobiLink server and your .NET synchronization scripts.

  3. Start Visual Studio .NET using a command line option to debug the MobiLink server.

  4. Set up Microsoft Visual Studio for debugging .NET code:

  5. Open the associated .NET source files and set break points.

    Note: Open the source files individually in the mlsrv10 solution. Do not open the original solution or project file.

  6. Start MobiLink from the Debug menu or using F5.

    If prompted, save mlsrv10.sln in an appropriate location.

    If the dialog No Symbolic Information appears, click OK to debug anyway. You are debugging the managed .NET synchronization scripts that MobiLink calls, not the MobiLink server itself.

  7. Perform a synchronization that causes the code with a breakpoint to be executed by MobiLink.