10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

How You Can Monitor a Running ApplicationNo PrintQryIssues a set noprintqry statement while the application is runningNo QEPIssues a set noqep statement while the application is runningHow You Can Monitor a Running ApplicationThe Monitor tab displays the current state of a running application using twoareas of the window:• Call Stack portlet—A call stack of the currently executing thread in theapplication• Thread Map portlet—A visual thread map diagram, with each node in thediagram representing one thread in the applicationThe Monitor tab is continually refreshed as the application executes so that thedisplay is always accurate and current.Current Thread DisplayThe Current Thread area displays the thread identifier of the current thread,that is, the last thread to execute. Below that, the Debugger displays acondensed version of the current thread's call stack.This display can be useful when trying to determine the execution path in anapplication. In a large application, it may not always be obvious how aparticular procedure gets executed. To identify the path or paths for theprocedure, set a breakpoint in the procedure, turn on the Monitor, and run theapplication. Each time the breakpoint for the procedure is reached, the Monitordisplays the call stack of the current thread in the application with the targetprocedure at the top.Thread MapThe Thread Map portlet on the Monitor tab provides a visual representation ofthe current application threads and their relationships. Each rectangular nodeon the tree represents one thread. The lines connecting the nodes show theparent-child relationships, with the parent displayed above its children. If aframe was opened with an openframe statement that set the parent frame tonull, the word NULL appears as the parent.Debugging Your Application 459

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!