诺基亚手机开发联机调试
2008-10-15 11:19
253 查看
On device debugging - Nokia E-50[/b]
Friday, 10 August 2007
Carbide C++ tools provide developers comprehensive features
for debugging S60 applications on pc using an emulator. Most of the issues are
resolved with emulator debugging. The behaviour of emulator is very much
similar to device, but some times when we have to test certain features which
are not supported by emulator, like making a phone call, accessing phone's
camera and radio, then we need to debug applications on the device.
Carbide.C++ developer and professional editions both support
on-device-debugging on S60 3rd edition devices. I'll explain you the steps
which I followed to debug a simple HelloWorld application on my E50.
I assume you're familiar with carbide.c++ enivironment.
What You Need?[/b]
S60
3rd edition mobile phone - E-50 in my case.
Nokia
pc suite, I have v6.83.14.1 installed on my machine.
OR:
you can use bluetooth for on-device-debugging too. But for that your
mobile must be connected at serial port.
TRK
sisx. (It can be found @ C:/Program Files/Nokia/Carbide.c++
v1.1/plugins/com.nokia.carbide.trk.support_1.1.0.5/trk)
Carbide.c++
IDE, I installed v1.1 developer edition.
Nokia PC-suite installation:[/b]
Install
Nokia pc suite on your machine. You can find latest version of pc suite
from Nokia's website.
Attach
your phone with pc using usb cabel. ( Data Cabel mode on mobile should be
"pc suite" mode).
Nokia
pc suite on your pc detects and installs drivers for your device.
So
please attach your phone and start the process.
PC port settings:[/b]
OS:
Windows Xp
Go
to Control Panel->System->Hardware Tab->device manager
Expand ports(COM
& LPT) and you can find "Nokia E50 USB (COM20), like image below;
Carbide.c++ application creation and debug settings:
Create a symbian application through;
File->New->C++ application for S60 project. Now name
your project and press next to choose template "S60 3.x GUI
application", press next to select your sdk. I used S60_3rd_MR.
The rest is done by IDE and you can now find your created
application in carbide.c++.
You can find three configuration, If you see the picture
below;
1. S60 3.0 Emulator
Debug[S60_3rd_MR] - It is used for emulator build, debug purpose.
2. S60 3.0 Phone
(GCCE) Debug[S60_3rd_MR] - The one we need here to debug application on phone.
3. S60 3.0 Phone
(GCCE) Release[S60_3rd_MR] - creates sisx for release.
After selecting current active project settings, you need to
build project atleast once.
Now insert a break point by double clicking or right
clicking on desired line, I inserted in HandleCommandL function.
Mobile device settings:[/b]
Please install App TRK from C:/Program
Files/Nokia/Carbide.c++ v1.1/plugins/com.nokia.carbide.trk.support_1.1.0.5/trk
on your mobile phone using pc suite.
Start App TRK and go to Options->settings and select USB
in connection options. Please adjust your setting as shown in image below;
When done press back and Options->connect. You should
have a similar screen as below;
Carbide.c++ debug settings for On-device-debugging:[/b]
Right Click on project->debug as->debug
Select "Symbian OS App TRK" and select
"New" button located at bottom ( one time process).
The image below displays it;
You can also uncheck E32Main breakpoint as shown below;
Important:[/b]
Please make sure that port setting in 'debugger' tab of
debug are similar to 'Computer port settings', as show below;
Now press 'Debug' button to start the process.
Carbide.c++ creates sisx and installs it on device like
below;
As mentioned earlier, I inserted break point in
HandleCommandL function. So press Options (on your mobile) and select any
command to display a "Hello World!" either from a file or a resource.
And here you are paused at breakpoint inserted line in your Carbide.c++ IDE.
You can see it below;
Thanks for reading this article now enjoy coding symbian c++
with carbide.c++.
Friday, 10 August 2007
Carbide C++ tools provide developers comprehensive features
for debugging S60 applications on pc using an emulator. Most of the issues are
resolved with emulator debugging. The behaviour of emulator is very much
similar to device, but some times when we have to test certain features which
are not supported by emulator, like making a phone call, accessing phone's
camera and radio, then we need to debug applications on the device.
Carbide.C++ developer and professional editions both support
on-device-debugging on S60 3rd edition devices. I'll explain you the steps
which I followed to debug a simple HelloWorld application on my E50.
I assume you're familiar with carbide.c++ enivironment.
What You Need?[/b]
S60
3rd edition mobile phone - E-50 in my case.
Nokia
pc suite, I have v6.83.14.1 installed on my machine.
OR:
you can use bluetooth for on-device-debugging too. But for that your
mobile must be connected at serial port.
TRK
sisx. (It can be found @ C:/Program Files/Nokia/Carbide.c++
v1.1/plugins/com.nokia.carbide.trk.support_1.1.0.5/trk)
Carbide.c++
IDE, I installed v1.1 developer edition.
Nokia PC-suite installation:[/b]
Install
Nokia pc suite on your machine. You can find latest version of pc suite
from Nokia's website.
Attach
your phone with pc using usb cabel. ( Data Cabel mode on mobile should be
"pc suite" mode).
Nokia
pc suite on your pc detects and installs drivers for your device.
So
please attach your phone and start the process.
PC port settings:[/b]
OS:
Windows Xp
Go
to Control Panel->System->Hardware Tab->device manager
Expand ports(COM
& LPT) and you can find "Nokia E50 USB (COM20), like image below;
Carbide.c++ application creation and debug settings:
Create a symbian application through;
File->New->C++ application for S60 project. Now name
your project and press next to choose template "S60 3.x GUI
application", press next to select your sdk. I used S60_3rd_MR.
The rest is done by IDE and you can now find your created
application in carbide.c++.
You can find three configuration, If you see the picture
below;
1. S60 3.0 Emulator
Debug[S60_3rd_MR] - It is used for emulator build, debug purpose.
2. S60 3.0 Phone
(GCCE) Debug[S60_3rd_MR] - The one we need here to debug application on phone.
3. S60 3.0 Phone
(GCCE) Release[S60_3rd_MR] - creates sisx for release.
After selecting current active project settings, you need to
build project atleast once.
Now insert a break point by double clicking or right
clicking on desired line, I inserted in HandleCommandL function.
Mobile device settings:[/b]
Please install App TRK from C:/Program
Files/Nokia/Carbide.c++ v1.1/plugins/com.nokia.carbide.trk.support_1.1.0.5/trk
on your mobile phone using pc suite.
Start App TRK and go to Options->settings and select USB
in connection options. Please adjust your setting as shown in image below;
When done press back and Options->connect. You should
have a similar screen as below;
Carbide.c++ debug settings for On-device-debugging:[/b]
Right Click on project->debug as->debug
Select "Symbian OS App TRK" and select
"New" button located at bottom ( one time process).
The image below displays it;
You can also uncheck E32Main breakpoint as shown below;
Important:[/b]
Please make sure that port setting in 'debugger' tab of
debug are similar to 'Computer port settings', as show below;
Now press 'Debug' button to start the process.
Carbide.c++ creates sisx and installs it on device like
below;
As mentioned earlier, I inserted break point in
HandleCommandL function. So press Options (on your mobile) and select any
command to display a "Hello World!" either from a file or a resource.
And here you are paused at breakpoint inserted line in your Carbide.c++ IDE.
You can see it below;
Thanks for reading this article now enjoy coding symbian c++
with carbide.c++.
相关文章推荐
- 调试、手机-手游开发知识(三)--NDK联机调试-by小雨
- 手机前端开发调试利器 vConsole
- 微信开发调试,当通过其他工具(不经过手机微信,直接填写好XML)调试没有问题,而通过手机无响应
- 诺基亚招募Linux专家 或秘密开发Android手机
- Android开发中关于小米2s手机的调试问题
- IOS开发 如何联机调试和发布程序(99$) -转载
- Ubuntu环境下android开发,连接真实手机调试方法
- 《BREW进阶与精通――3G移动增值业务的运营、定制与开发》连载之91――BREW手机中的调试模式
- 诺基亚手机开发:用Java™ MIDlet发送相片
- 对苹果说不 Intel联手诺基亚开发新手机
- Android手机在开发调试时logcat不显示输出信息的解决办法
- Android手机在开发调试时logcat不显示输出信息的解决办法
- 手机前端开发调试利器 – vConsole
- 【Win10 应用开发】解决VS 2015 RC不能调试手机应用的问题
- Android开发联机调试 MOTOROLA XOOM MZ606平板电脑(WINDOWS ,LINUX)
- Android开发:通过AdbWireless,不用数据线连接到安卓手机进行调试
- 手游开发知识(三)--NDK联机调试
- 手机测试环境调试 -- 微信,Android,IOS开发使用Fiddler代理
- Eclipse开发Android程序在安卓手机上调试,不用AVD