After you have done the setup (see Preparing to Run (Test) or Debug a Project), add breakpoints in your code and run the debugger as explained below.Setting breakpoints is an Eclipse feature. This section provides only basic information. You can also use advanced features such as importing and exporting breakpoints, and using class prepare breakpoints. See Eclipse help for more details on all breakpoint functionality. You can set or change breakpoints during a debug session also.You can work with breakpoints in the debugger perspective as well as in the BusinessEvents Studio development perspective.
2. To add a breakpoint put your cursor in the left margin (gray area) next to a row where you want to add a breakpoint. Do one of the following:
3. Set and adjust breakpoints as needed. Select a break point, right click, and do any of the following:
− To edit a breakpoint’s properties, select Breakpoint properties. A dialog displays (with mostly runtime options). For example, you can use a class prepare breakpoint (so the running program is suspended when the specified class or interface is first loaded by the Java VM).
1. As needed, switch to Debug perspective. Select Window > Open Perspective, or click the Open Perspective () button). Then select Other > Debug.
Alternatively, wait till BusinessEvents prompts you to change to debug perspective. This happens when the debugger reaches the first breakpoint.
2. Launch a configuration: Click the down-arrow to the right of the debugger () button. You see a drop-down list. Do one of the following:
− Select a debug configuration from the list. (To add configurations to this list, select Organize Favorites from the debugger drop-down list.)
− Select Debug Configurations. At the Debug Configurations dialog select a debug configuration and click Debug.
− Click the debugger () button or Select Run > Debug. (Only if you have already launched debugger with a configuration.)
Debugger starts a BusinessEvents engine, using parameters provided in the launch configuration, if any were provided.
− Send messages to the channels in the usual way (for example from a Enterprise Message Service server)
−
4. Use the standard Eclipse commands such as step into (F5), step over (F6), step return, step return, and so on, depending on the level of detail you want to examine.See the options in the Run menu and in the Breakpoints tab for more options, and use Eclipse help for details.
Copyright © TIBCO Software Inc. All Rights Reserved.