Debugging Export Connectors With Visual Studio.NET



Similar documents
Internet Explorer Settings for use with Privia

WebSphere Business Monitor

Module 11 Setting up Customization Environment

Getting Started with the Ed-Fi ODS and Ed-Fi ODS API

Installing OneStop Reporting Products

Using Microsoft Visual Studio API Reference

Installing GFI Network Server Monitor

DEPLOYING A VISUAL BASIC.NET APPLICATION

Scripting with CAMMaster And Visual Basic.NET

Tracking Network Changes Using Change Audit

TECHNICAL DOCUMENTATION SPECOPS DEPLOY / APP 4.7 DOCUMENTATION

Creating XML Report Web Services

How to install software applications in networks to remote computers

BROWSER-BASED DEVELOPMENT & NETWORK MONITORING UTILITIES

FINACS Version 3. Administrator s Plus Accounting. An Overview of New Features

Alchemex Report Designer

SHIPSTATION / MIVA MERCHANT SETUP GUIDE

How To Install An Aneka Cloud On A Windows 7 Computer (For Free)

Federated Identity Service Certificate Download Requirements

Last edited on 7/30/07. Copyright Syncfusion., Inc

SafeGuard Enterprise upgrade guide. Product version: 7

Crystal Reports. For Visual Studio.NET. Reporting Off ADO.NET Datasets

Zoom Plug-ins for Adobe

for Networks Installation Guide for the application on the server August 2014 (GUIDE 2) Lucid Exact Version 1.7-N and later

Idera SQL Diagnostic Manager Management Pack Guide for System Center Operations Manager. Install Guide. Idera Inc., Published: April 2013

INSTALLATION AND ACTIVATION GUIDE

Event Center (rev b) EVENT CENTER. VPI 160 Camino Ruiz, Camarillo, CA (Voice) (Fax)

Configuring IBM HTTP Server as a Reverse Proxy Server for SAS 9.3 Web Applications Deployed on IBM WebSphere Application Server

Software for Android Platform VCNL4020 and VCNL3020

SourceAnywhere Service Configurator can be launched from Start -> All Programs -> Dynamsoft SourceAnywhere Server.

Running a Program on an AVD

UNICORN 6.4. Administration and Technical Manual

Cloud Services ADM. Agent Deployment Guide

O Reilly Media, Inc. 3/2/2007

Web based training for field technicians can be arranged by calling These Documents are required for a successful install:

INTERNAL USE ONLY (Set it to white if you do not need it)

Amira License Manager

10 STEPS TO YOUR FIRST QNX PROGRAM. QUICKSTART GUIDE Second Edition

Tutorial: Packaging your server build

FEI Avizo License Management

Desktop, Web and Mobile Testing Tutorials

Windows Intune Walkthrough: Windows Phone 8 Management

Hands-On Lab. Lab 01: Getting Started with SharePoint Lab version: Last updated: 2/23/2011

Download and Installation of MS SQL Server

UNICORN 7.0. Administration and Technical Manual

Install MS SQL Server 2012 Express Edition

Kofax, Inc., Laguna Canyon Road, Irvine, California 92618, U.S.A. All rights reserved. Use is subject to license terms.

BarTender s.net SDKs

ContentWatch Auto Deployment Tool

Kofax Export Connector for Microsoft SharePoint

Hands-on CUDA exercises

QUANTIFY INSTALLATION GUIDE

Activation and Licensing Model Explained

Installing GFI Network Server Monitor

KofaxExpress. Installation Guide

Wakanda Studio Features

Visual Basic. murach's TRAINING & REFERENCE

Debugging with TotalView

IMPORTANT PRODUCT INFORMATION

Aras Innovator Internet Explorer Client Configuration

Implementing a SAS 9.3 Enterprise BI Server Deployment TS-811. in Microsoft Windows Operating Environments

Quick Start Guide v4.0 Client Outlook Connection

Active Directory Management. Agent Deployment Guide

Table of Contents. FleetSoft Installation Guide

Lab 2-2: Exploring Threads

A Tutorial on Tablet PC. Simon Fraser University CMPT 354 Fall 2007

Installation Guide: Migrating Report~Pro v18

BarTender s ActiveX Automation Interface. The World's Leading Software for Label, Barcode, RFID & Card Printing

Installation and User Guide Zend Browser Toolbar

How To Integrate SAP Business Data Into SharePoint 2010 Using Business Connectivity Services And LINQ to SAP

What Is Online Archiving?

Forms Printer User Guide

Kofax Transformation Modules Generic Versus Specific Online Learning

Jet Data Manager 2012 User Guide

Troubleshooting with the Nodus Scheduler

InstantSearch+ for Magento Extension

TrueEdit Remote Connection Brief

Department of Veterans Affairs. Open Source Electronic Health Record Services

How to Import Microsoft Access Databases into FmPro Migrator

Application Development With Data Studio

Extracting an S/MIME certificate from a digital signature

Netezza Workbench Documentation

Integrated Virtual Debugger for Visual Studio Developer s Guide VMware Workstation 8.0

Installation Guide for Windows May 2016

StrikeRisk v6.0 IEC/EN Risk Management Software Getting Started

Unisys INFOIMAGE FOLDER ON WINDOWS NT. Connector for Microsoft Exchange. Getting Started Guide

How To Install Database Oasis On A Computer Or Computer (For Free)

NetBeans IDE Field Guide

Wise Package Studio 8.0 MR1 Release Notes

Cisco SSL Encryption Utility

Network installation guide. Version th February 2015

Zanibal Plug-in For Microsoft Outlook Installation & User Guide Version 1.1

Log Analyzer Reference

BUILDER 3.0 Installation Guide with Microsoft SQL Server 2005 Express Edition January 2008

Microsoft Visual Studio Integration Guide

Connecting to Manage Your MS SQL Database

unisys ClearPath eportal Developer 6.1 Unisys Multi-Device App Developer s Guide March

Click Studios. Passwordstate. Upgrade Instructions to V7 from V5.xx

Learning Management System (LMS) Quick Tips. Contents LMS REFERENCE GUIDE

Transcription:

Date June 22, 2012 Applies To Kofax Capture 8.0. 9.0, 10.0 Summary This application note provides the information needed to step through a.net-based Export Connector (Release Script) during execution. Revision 1.2 Overview When developing and debugging Export Connectors (Release Scripts), it is often desirable to step through the code while a document is being exported. This provides the ability to examine the actions taking place, along with values being used, in the code during execution. This information can be invaluable during development or troubleshooting any issues that may arrive at a later time. This application note contains information on the requirements, preparation and basic steps a developer can use to step through the source code for the Export Connector using Visual Studio.NET. This specifically deals with the debugging of Export Connectors created with Visual Studio.NET 2008 or later. If debugging an older Export Connector or Release Script created using Visual Basic 6.0, the "Debugging Export Connectors (Release Scripts) Created Using Visual Basic 6" should be consulted. Requirements To implement the following procedures, you must have a Visual Studio.NET development environment installed on a machine with a Kofax Capture Standalone installation, a Capture Client installation or a Capture Server installation with client applications installed. Also, a batch containing documents from the Document Class making use of the Export Connector and ready to be exported will be required. Compiling with Binary Compatibility Previous versions of Kofax Capture made use of Release Scripts built using Visual Basic 6.0. In these cases, it was recommended to set the Source Code project for Binary Compatibility. In Visual Basic.NET, Binary Compatibility is accomplished through attributes giving a developer direct control over the information placed in the compiled component, such as class and interface identifiers. As a consequence, Binary Compatibility is no longer an issue. Debugging with.net Framework 4.0 Capture was created using Visual C++ and Visual Basic 6 as well as.net Framework 2.0 (Capture 8.0) or.net Framework 3.5 SP1 (Capture 9.0 and 10.0). Because of this blend of Managed (.NET) and Unmanaged (Non-.NET) components, some modules, such as Administration, Validation and Export, are "Unmanaged", and will run against the latest version of the.net Framework installed, which can be.net Framework 4.0. Kofax Knowledge Base Article QAID 16107 addresses this issue and provides a solution. Use the link below to see this Article. http://knowledgebase.kofax.com/faqsearch/results.aspx?qaid=16107

Stepping Through the Code The most flexible method of examining what is happening in an Export Connector is to step through the code during execution. Setting the Export Connector to Automatically Launch Into Debug Mode After loading the source code for the Export Connector in Visual Studio.NET, the Export Connector can be set to automatically launch Export. This is set in the project s properties selection available under the Project menu (Project <Project Name> Properties...). Under the Debug tab are the debug options available for the project, including the ability to start an external program such as the Export (Release.exe) module. Great care should be taken to verify that only the desired Export Connector will be run if this option is selected. Other Batches making use of other Export Connectors may raise issues under this scenario. If the Export (Release.exe) process is already running, it is possible to attach to it from the Processes dialog box. This is available under the Debug menu (Debug Attach to Process...) and under the Tools menu (Tools Attach to Process...). Page 2

Setting the Breakpoint In this screenshot, a breakpoint is set early in the code of the "ReleaseDoc()" function which is found in the Release script class, "KfxReleaseScript", in the "Release.vb" file. This function is the document's export point and uses the ReleaseData object to export all of the current document's data to the specified external data repository. It is called once for each document in the batch that is to be exported. The breakpoint can be activated by clicking the left hand margin of the code window on the line you wish to set or by selecting "Toggle Breakpoint" from the Debug menu, or pressing F9: After the breakpoint has been created, build the project from the Build menu. Page 3

Stepping Through the Code Process a batch that contains a Document Class that makes use of the Export Connector up to just before the Export queue. This way, the batch will be ready when the developer starts debugging. Visual Studio.NET is now ready to begin the debugging process and step through the code. Start the Visual Studio debugger from the Debug menu or pressing F5. The Export module will launch and call the Export Connector to export the document. When the Export Connector process reaches the selected breakpoint, Export will stop and highlight the running line of code. Page 4

You can now step through the code using "Step Into" F11, "Step Over" F10 and "Step Out" Shift+F11. Each time the F11 key is pressed, one operation will be performed. This will advance to the next line of code and reveal exactly what code is being run. To continue processing normally, simply press the Continue F5 button and Export will continue to process until the next time a Breakpoint is encountered or the export process has been completed. To stop debugging, simply click the "Stop Debugging" Shift+F5 keys or select the menu entry. Summary Using the techniques noted in this, a developer can step through the Export Connector as it is running to see the actions taking place and values being used. This will provide the information needed to address any issues such as fixing an error condition that occurs, or modifying the Export Connector to handle any given situation as needed. Page 5