How to Start the Oracle CEP Visualizer from Oracle CEP IDE for Eclipse

5-32 Oracle Complex Event Processing Developers Guide Figure 5–32 Oracle CEP Visualizer 3. Use the Oracle CEP Visualizer as the Oracle Complex Event Processing Visualizer Users Guide describes.

5.4 Debugging an Oracle CEP Application Running on an Oracle CEP Server

Because Oracle CEP applications are Java applications, standard Java debugging tools including those provided in Eclipse can be used with these applications. This section describes: ■ Section 5.4.1, How to Debug an Oracle CEP Application Running on an Oracle CEP Server You can also use the load generator and csvgen adapter to simulate data feeds for testing. For more information, see Chapter 25, Testing Applications With the Load Generator and csvgen Adapter .

5.4.1 How to Debug an Oracle CEP Application Running on an Oracle CEP Server

This section describes how to debug an Oracle CEP application running on an Oracle CEP server. Oracle CEP IDE for Eclipse and Oracle CEP Servers 5-33 To debug an Oracle CEP application running on an Oracle CEP server: 1. Set a breakpoint in the Java code you wish to debug. In this case, set the breakpoint by right-clicking in the gutter of the editor and selecting Toggle Breakpoint as Figure 5–33 shows. Figure 5–33 Setting a Breakpoint

2. Select Window Show Views Servers.

3. Start the server in debug mode by choosing one of the following as shown in Figure 5–34 :

a. Click the Start the Server in debug mode icon in the Servers view tool bar.

b. Right-click a server in the Servers view and select Debug.

Figure 5–34 Starting the Oracle CEP Server in Debug Mode

4. The server will start, and when it gets to your breakpoint the thread will stop.

If the Oracle CEP IDE for Eclipse does not automatically switch to the Debug perspective, switch to that perspective by selecting Window Open Perspective Other and selecting the Debug option from the list of perspective. 5. Debug your application using the Debug perspective. Note: In some cases you may get a dialog box warning that it could not install a breakpoint because of missing line number information. This dialog comes from the core Eclipse debugger and is normally a harmless issue with Oracle CEP Service Engine applications. Simply check the Dont Tell Me Again checkbox and continue debugging. 5-34 Oracle Complex Event Processing Developers Guide 6. When you are finished you can stop the server as usual see Section 5.3.2, How to Stop a Local Oracle CEP Server .