Symbian调试——模拟器上Console程序的Debug方法
2010-04-15 17:37
429 查看
我们时常会需要编写一些测试用例来检验模块工作是否如预期,因而比较适合的实现方式就是通过Console程序来进行。
在Symbian中在使用console程序时却为了这个console的调试如何进行困扰了我好久,明明设好了断点,程序也以debug方式运行起来了,但就是无法进入断点行.总算后来在网上搜索到了相关方法说明,现记录如下
=============
Debugging console apps with 3rd edition emulator
Symbian console applications are handle for testing. Debugging them
with the 2nd edition emulator was obvioius. With 3rd edition, there is
a trick. Instead of the epoc.exe application, you need to run
eshell.exe. This will bring up a command line. Enter the name of the
executable at the prompt and away you go.
How does one configure the IDE to run a console applciation?
With Carbide, select the "Debug..." memu item on the debug popup on the
toolbar. This will bring up a dialog to configure the debug session.
Select the "Main" tab. Edit the "Emulator or host application" from
epoc.exe to eshell.exe.
Code Warrior is similar. It is in the setttings dialog but it is
tucked away under Target->Runtime Settings. Update the "Host
Application for Libraries & Code Resources" field.
另外,根据使用经验,直接打开eshell.exe仍然会启动有界面的模拟器,模拟器的界面会覆盖掉eshell的界面。可以通过快捷键Alt+Ctrl+Shift+T切换任务。模拟器中快捷键的用法可以在
http://www.symbian.com/developer/techlib/v70sdocs/doc_source/ToolsAndUtilities/Emulator/emulator/Debugging.guide.html
查到。此外,可以在启动eshell的时候加入参数"-dtextshell --"只启动eshell而不带有界面。这个设置可以在CodeWarrior的Target->Runtime Settings->Program Arguments更改。
在Symbian中在使用console程序时却为了这个console的调试如何进行困扰了我好久,明明设好了断点,程序也以debug方式运行起来了,但就是无法进入断点行.总算后来在网上搜索到了相关方法说明,现记录如下
=============
Debugging console apps with 3rd edition emulator
Symbian console applications are handle for testing. Debugging them
with the 2nd edition emulator was obvioius. With 3rd edition, there is
a trick. Instead of the epoc.exe application, you need to run
eshell.exe. This will bring up a command line. Enter the name of the
executable at the prompt and away you go.
How does one configure the IDE to run a console applciation?
With Carbide, select the "Debug..." memu item on the debug popup on the
toolbar. This will bring up a dialog to configure the debug session.
Select the "Main" tab. Edit the "Emulator or host application" from
epoc.exe to eshell.exe.
Code Warrior is similar. It is in the setttings dialog but it is
tucked away under Target->Runtime Settings. Update the "Host
Application for Libraries & Code Resources" field.
另外,根据使用经验,直接打开eshell.exe仍然会启动有界面的模拟器,模拟器的界面会覆盖掉eshell的界面。可以通过快捷键Alt+Ctrl+Shift+T切换任务。模拟器中快捷键的用法可以在
http://www.symbian.com/developer/techlib/v70sdocs/doc_source/ToolsAndUtilities/Emulator/emulator/Debugging.guide.html
查到。此外,可以在启动eshell的时候加入参数"-dtextshell --"只启动eshell而不带有界面。这个设置可以在CodeWarrior的Target->Runtime Settings->Program Arguments更改。
相关文章推荐
- Symbian调试——模拟器上Console程序的Debug方法
- xcode反汇编调试iOS模拟器程序(七)Debug与Release的区别
- myEclipse中使用debug调试程序方法
- Symbian S60 模拟器下删除已调试的应用程序的方法
- 删除Symbian模拟器中测试程序的方法
- 删除Symbian模拟器中测试程序的方法
- vc6.0或者vs2008 MFC程序采用console输出调试信息的方法
- 删除Symbian模拟器(功能表->安装)里面测试程序的方法
- Release和debug模式下调试跟踪程序的原则和方法 C#
- xcode反汇编调试iOS模拟器程序(七)Debug与Release的区别
- 调试MTK mmi程序时通过debug口打印调试信息的方法
- C# Release和debug模式下调试跟踪程序的原则和方法
- gdb调试带参数的console程序方法
- xcode反汇编调试iOS模拟器程序(七)Debug与Release的区别
- Linux 程序开发打印 Debug 信息的使用技巧--C语言中几种输出调试信息的方法
- xcode反汇编调试iOS模拟器程序(七)Debug与Release的区别
- 通过windows mobile 5模拟器调试网络程序,模拟器独立ip的设置方法
- Linux 程序开发打印 Debug 信息的使用技巧--C语言中几种输出调试信息的方法
- pycharm下的Python console 调试当前程序方法
- 删除Symbian模拟器中测试程序的方法