344 | | === Configure the Debug Configuration Settings in Carbide === |
345 | | |
346 | | Next we will need to create a new on-device debugging configuration. |
347 | | |
348 | | Select '''Run''' --> '''Debug Configurations...''' from the main menu: |
349 | | |
350 | | [[Image(set-debug-configuration.png)]] |
351 | | |
352 | | '''Debug Configuration''' dialog will appear like below: |
353 | | |
354 | | [[Image(new-application-trk.png)]] |
355 | | |
356 | | ==== Create a new Debug configuration for on-device debugging ==== |
357 | | |
358 | | Right-click '''Symbian OS App TRK''', and click '''New'''. |
359 | | |
360 | | New configuration will appear on the dialog. We need to edit few things: |
361 | | 1. Rename the configuration name from '''pjproject Phone Debug...''' to '''symbian_ua Phone Debug...''', as seen in the picture below. (Hints: when we have different executable to debug, we will create different configuration). |
362 | | 1. Set the ''Executable'' |
363 | | 1. Set the ''Remote process to launch'' |
364 | | |
365 | | You should see something similar to the image below. |
366 | | |
367 | | [[Image(new-debug-configuration.png)]] |
368 | | |
369 | | Now click on '''Apply''' button. The configuration name on the left tree now will get updated. |
370 | | |
371 | | ==== Configure TRK Connection ==== |
372 | | |
373 | | Now select '''Connection''' tab. Choose the '''Serial Port''' to the COM port where your phone connection is mapped to, which you have found out from the step above (look at the Device Manager). In my case, it was COM3: |
374 | | |
375 | | [[Image(DevelopingSymbianAppWithCarbide:debug_connection.JPG)]] |
376 | | |
377 | | The ''Baud Rate'' setting should match the setting on the TRK application running on the phone. Since we have not changed this setting, just accept the default value (115200). |
378 | | |
379 | | Now click on '''Apply''' button. |
380 | | |
381 | | ==== Configure SIS File ==== |
382 | | |
383 | | Now select the '''Installation''' tab. Browse the .sisx file from PJSIP's {{{build.symbian}}} directory: |
384 | | |
385 | | [[Image(DevelopingSymbianAppWithCarbide:debug_installation.JPG)]] |
386 | | |
387 | | Now click '''Apply''' button |
388 | | |
389 | | We are now ready to perform on-device debugging! Get yourself some tea, you deserve some break. |
390 | | |
391 | | |
392 | | === Debugging Application === |
393 | | |
394 | | Still in the '''Debug''' dialog, press the '''Debug''' button. Hold your breath! |
| 329 | === Start Debugging === |
| 330 | |
| 331 | Because we haven't setup a debug configuration, if you start debugging, Carbide C++ will offer you to setup one. |
| 332 | |
| 333 | On the ''Symbian Project Navigator'' select bld.inf, and press debug on the toolbar (the picture of the bug...): |
| 334 | |
| 335 | [[Image(new-launch-configuration.png)]] |
| 336 | |
| 337 | You will get the Launch Configuration Wizard. Click '''Next'''. You'll get : |
| 338 | |
| 339 | [[Image(executable-selection.png)]] |
| 340 | |
| 341 | Executable should already be set to {{{symbian_ua.exe}}}, so just click '''Next'''. You'll get: |
| 342 | |
| 343 | [[Image(trk-conn-settings.png)]] |
| 344 | |
| 345 | This should be defaulted to {{{connection 1}}} which we have setup earlier. Click '''Next'''. You'll get: |
| 346 | |
| 347 | [[Image(trk-sis-selection.png)]] |
| 348 | |
| 349 | Verify that the sisx is {{{symbian_ua.sisx}}} which we already tested beforehand. Click '''Next''' then '''Finish'''. You should immediately begin debugging. |