Troubleshooting guide

254
BlackBerry Java Development Environment Development Guide
Make a thread current
When you make a thread current, the Call Stack changes to display the calls for the thread. Other windows might
display current information relating to the new current thread.
1. From a variable window, right-click a thread.
2. Select Make thread current.
Expand objects
In the threads pane, the following fields indicate the status of an object:
thread that currently owns the object (Thread owning lock: @nnnnnnnn)
thread that calls Object.wait() (Thread waiting for notify: @nnnnnnnn)
thread that attempts to enter a synchronized block for the object (Thread acquiring lock: @nnnnnnnn)
View the data members of a process
The processes pane lists all the processes that are currently running in the BlackBerry® Integrated Development
Environment. You can expand each process to view its data members.
The Process column displays each process in the format process_name(process_id).
> To view data members, in the Process column, expand a process.
View the call stack
The call stack pane displays the calling methods at the current point of execution.
View the source code of a calling method
1. Right-click a method.
2. Click Show Definition.
The source file appears in the Edit window at the line of code that implements the class of the selected item. All
BlackBerry® Integrated Development Environment panes update to reflect the new context.
View event logs
The event log pane displays all exception messages that the BlackBerry® Integrated Development Environment
produces when you run an application in the BlackBerry device simulator or on a
BlackBerry device. To identify an
error that has occurred, use the event log pane to view the source code that caused the error message.
Note: Threads, and objects whose threads are deadlocked, also display in the following panes: objects, local variables, watch, static
data, processes, and locks. To update the context of the selected thread in all the debugging panes, right-click in the threads pane,
and then click Make current.
Note: The first calling method that appears in the call stack pane is located at the bottom of the call stack.