Using Microsoft Visual Studio Debugger for User-Defined Functions

Microsoft Visual Studio 2008 developers use Microsoft Visual Studio Debugger to step through the user-defined function code.

  1. Attach the debugger to a running server:
    devenv /debugexe "%IQDIR16%\Bin64\iqsrv16.exe"
  2. Goto Debug | Attach to Process
  3. To start the server and debugger together:
    devenv /debugexe "%IQDIR16%\bin32\iqsrv16.exe" [commandline options for your server]

    Each platform will have a debugger and each will have their own command line syntax. SAP Sybase IQ source code is not required. The msvs debugger will recognize when the user-defined functions source is executed and break at the set breakpoints. When control returns from the user-defined functions to the server, you will only see machine code.