BS2000 Logpoints

Overview

BS2000 Logpoints are special type of line breakpoints. They are designed to capture variable values at selected line of debugging program. BS2000 Logpoints do not stop the program. When debugger reaches the BS2000 Logpoint line, it suspends, saves variable values and continues running, so it does not need user interaction. The new view: BS2000 Logpoints may be used to managing BS2000 Logpoint data, review program runs and comparing them.

Toggling BS2000 Logpoints

To debug program using Logpoints all of them must be set before debugger start. Toggling Logpoints during the debugger session is not possible.
To toggle new Logpoint, perform Toggle BS2000 Logpoint form the context menu of the left marker bar at selected line in source editor.

That menu option opens dialog, where properties of the new Logpoint may be set: All toggled Logpoints are visible and may be managed in the Breakpoints View (command link Window > Show View > Other... > Debug > Breakpoints)

BS2000 Logpoints View

Data collected by BS2000 Logpoints are visible in the BS2000 Logpoints view (command link Window > Show View > Other... > BS2000 > BS2000 Logpoints)
BS2000 Logpoints View will show up automatically when debugger reaches the Logpoint line. The tree is dynamically updated during debugger session if any new data is collected.

BS2000 View sections

Saving Logpoint Reports

If the debug sessions containing Logpoints ends or terminates, the session status changes from Running to Finished. Each finished session will be deleted on new debug run or after closing the view. Finished sessions may be persisted to the XML file. You can load saved sessions to the BS2000 Logpoints View using the Manage Logpoint Sessions option from toolbar.

Logpoint Sessions

Debug runs with Logpoints or loaded Logpoint reports from XML file are treated as sessions. To select presented session use Manage Logpoint Sessions.

Select the runtime report or Load from file... option to assign it as Session 1 or Session 2. To disable given session column, select None option from dropdown. Preferences will apply after clicking OK.
Currently presenting report names will be listed at the Status Label on the top of view.

Depending on whether we use only Session 1 or both Session 1 and Session 2, filtering and highlighting values works different.
If only Session 1 is selected it highlights values which changed during the session run (different variable values in subsequent Logpoint hits).

If both Session 1 and Session 2 are selected, it highlight values which are different between Session 1 and Session 2.

The same rules apply to filtering variable values.

Comparing

BS2000 Logpoints are useful to compare different debug runs of program to check its variable values. If You will generate two reports of Logpoints and load them into the BS2000 Logpoints View, Logpoints with the same properties will be matched and displayed in the same row to compare them easily. If You want to compare Logpoints with the future reports it is recommended to specify Logpoint custom names. Logpoints with the same custom name will be always matched during comparison.

Additional Compare Options

There are also two context menu options which are useful in comparing Logpoints data: Compare Logpoints and Compare Variable Values..