Debug by attaching to a process
If you're connecting to your target machine by IP, you can use the BlackBerry Attach to Running Application configuration to connect to a remote process that's already running.
Before you begin:Your application must already be running on the device or simulator to attach to its process. Also, ensure that either the device or simulator that you want to use is in Development mode.
To enable Development Mode if it is not currently set:
- Connect to the device.
- On the home screen, swipe down from the top of the screen.
- Tap Settings > Security and Privacy > Development Mode.
- Tap the Use Development Mode toggle switch.
- If prompted, type the password for your device, and tap OK.
- Select a project from the Project Explorer.
- Right-click on the project and select the Device-Debug variant from .
- Optional: Navigate to some statements in your code, such as in main.c, that you can add breakpoints to.
- Right-click on the project from the Project Explorer and click Build Project.
- Right-click on the project and select .
- Create a debug launch configuration of type BlackBerry Attach to Running Application by selecting the type and then clicking New.
- Click Debug to start the debug process.
In the Select Process Verify dialog, select a running process.
The debug session starts.
In Debug view, click Resume.
Verify that the application is running.
- If you specified one or more breakpoints earlier, the IDE should encounter a breakpoint.
- Verify that the IDE encountered the breakpoint.
- Click Resume to continue debugging.
The debug session is terminated but the process continues to run.
Last modified: 2013-12-21