Note: This page is work-in-progress (27 Oct 2010).
This page instructs in debugging N900 device in using a USB connection.
Note: For instructions in debugging Qt applications running on a remote MeeGo device, see Debugging in Qt Creator.
Debugging N900 device
To debug your application on your N900 device using a USB connection:
- Set up an SSH connection to your N900 device:
- Start X Terminal and log in as root:
- Open the interfaces file. You can do this, for example, by running
- Add the following text into the file and save the file:
/opt/meego/qemu-arm/bin/qemu-system-arm -M n900 -mtdblock meego-handset-armv7l-qemu-22.214.171.124.20100921.1.img -sd sd-empty -sd meego-handset-armv7l-qemu-126.96.36.199.20100921.1-mmcblk0p.raw -serial stdio -clock unix -redir tcp:6666:10.0.2.15:22
- Connect your N900 device to your computer with the USB cable:
- To install gdbserver on device, set up usb networking:
- Start X Terminal on your N900 device and add the default gateway:
route add default gw 192.168.2.14 usb0
- On your host computer, copy
/etc directory to the corresponding directory on your N900 device:
scp /etc/resolv.conf email@example.com:/etc/
- Install gdb server:
zypper in gdb-gdbserver
- Configure build settings for your application by selecting Projects mode > Build Settings > MeeGo sysroot Debug.
- Configure run settings for your application by selecting your device configuration.
- Switch to Edit or Debug mode.
- Add breakpoints to your code by right-clicking and selecting Set Breakpoint.
- Click Start Debugging.