Debugger MenusMirth® Connect by NextGen Healthcare User GuideDebugger Window
The following context-specific tasks are available: Number Name Description 1 Title And Menu Bar The Title identifies the Chanel ID and the Event Name or Connector Identifier for the selected channel. The Menu Bar allows you to perform actions on the Debugger window. 2 Coding Area The Coding area displays Mirth® Connect code and custom JavaScript associated with the channel debugger 3 Local Variables Area The Local Variables area shows the values and values and the current state of local variables associated with the debugger results. 4 Expressions Area The Expressions area allows you to evaluate an expression to determine what a value is. You can also evaluate a snippet of code in this area. 5 Thread Information Bar The Thread Information bar identifies the following information: Connector type (Ex: JavaScript Writer) Channel Name (Ex: “Debugger Channel”) Channel ID Location of JavaScript (Ex: destination “Physician (2)” where “Physician” is the name of a destination connector and “2”
Mirth® Connect by NextGen Healthcare User GuideUse the Debugger
Note: mcservice.exe is currently not supported for Debug mode. Debug mode is not recommended for Clustering environment (Basic or Advanced Clustering). Within Mirth® Connect, select Channels. In the Channels list, select the channel you would like to debug. Note: You can currently only debug one channel at a time. In Channel Tasks, select Debug Channel. On the Debug Channel window, select the channel script(s) you would like to use to debug the selected channel. Select OK. A separate debugger window opens for each selected script, and for each destination connector. Process the selected channel (For Example: send a message). The Debugger window(s) will pop-up based on the options you selected. To exit the debug mode, close the debugger window(s) or undeploy the channel. Note: The channel will not stop or undeploy properly if the debugger is waiting for user operation, such as selecting “Go”. Parent topic: Mirth Connect Debugger
Mirth® Connect by NextGen Healthcare User GuideMirth® Connect Debugger
The Mirth Connect Debugger tool allows you to troubleshoot JavaScript errors throughout the Mirth® Connect application. The Debugger can be used for the following scripts and connectors: Deploy, Undeploy, Preprocessor, and Post Processor scripts Attachment/Batch scripts Source Connectors: Filters/Transformers Database Reader and JavaScript Reader types Destination Connectors: Filters/Transformers. Database Writer and JavaScript Writer types Response transformers Before You Begin If your Java application does not interact directly with a user, use the following steps to change the Headless mode to false. Setting this mode to false means that your Java application: Displays windows or dialog boxes. Accepts keyboard or mouse input. Uses any heavyweight AWT (Abstract Windowing Toolkit) components. To Edit the mcserver.vmoptions file Use the Debugger Debugger Window Debugger Menus Parent topic: Mirth Connect and JavaScript
Mirth® Connect by NextGen Healthcare User GuideFile Menu
Name Description Open Opens a dialog which allows you to select JavaScript from the system which is pulled into a new window in the debugger workspace. Run Allows you to select JavaScript from the system which is pulled into the debugger window for execution. The new test interruption point will be the next executable line. Exit Finishes the current test and closes the debugger window. Parent topic: Debugger Menus
Mirth® Connect by NextGen Healthcare User GuideEdit Menu
Name Description Cut Copies the highlighted text to the system clipboard and removes the text from the debugger window. Copy Copies the highlighted text to the system clipboard. Paste Places the system clipboard text into the current location of the cursor in the debugger window. Go to function... Moves the cursor to a specific named function within the script. Go to line... Moves the cursor to a specific line within the script. Parent topic: Debugger Menus
Mirth® Connect by NextGen Healthcare User GuideWindow Menu
Name Description Cascade Stacks all windows with the debugger work space. Tile Places all windows side-by-side in the debugger work space. Console Brings focus to the Console Window. The Console Window allows users to perform small scripts, test the state of variables, and display logs. Parent topic: Debugger Menus