To Configure a Project for Debugging

You must configure the project within Visual Studio to enable debugging.

  1. Use the Microsoft Visual Studio File > Open > Project Solution option to browse to, and open the project file to debug.
  2. From the Project menu, select Properties, and on the left of the screen, select the COBOL tab.
  3. In the General area, check Compile for Debugging.
  4. On the left of the screen, select the Debug tab. Set the Active settings dropdown to JCL. Configure the screen as follows:
    User
    You can restrict the debugger to debug only transactions from a specific user. If you leave this field empty, the debugger debugs transactions from any user.
    Job Class
    You can restrict the debugger to debug only transactions from a specific Job Class. If you leave this field empty, the debugger debugs programs in any Job Class.
    Job Number
    You can restrict the debugger to debug only a specific Job Number. If you leave this field empty, the debugger debugs all job Numbers
    Job Name
    You can restrict the debugger to debug a program in a specific Job Name. If you leave this field empty , the debugger will debug a program in any Job Name
    Enable SQL Server Debugging
    Enable this checkbox if you want to debug SQL stored procedures . You will also need to enable SQL/CLR debugging in the SQL Server Object explorer by right clicking on the SQL server instance that is hosting your database and selecting the Allow SQL/CRR debugging checkbox
  5. On the right side of the screen, select the project and open the properties pane.
    Database Server Instance
    The SQL server database that the region will use
    Host
    The hostname or IP address where the listener willl be running
    MFBINP Port
    The port number for the MFBINP protocol
    Region Name
    The name of the region that hosts the application to debug
    TN3270 Port
    The port number that the listener will respond to for the TN3270 protocol for this region