Subject: [基础] (调试)S60系统中如何获得更多的错误信息
Lee
Administrator
Rank: 9Rank: 9Rank: 9



UID 2
Digest Posts 0
Credits 18567
Posts 133
Money 189
Reading Access 200
Registered 13-3-2007
Status Offline
Post at 10-4-2007 10:21  Profile | Blog | P.M. 
(调试)S60系统中如何获得更多的错误信息

在S60第一版和第二版中:
当应用程序崩溃时,大多数S60模拟器中都只能显示一个简单的“程序关闭”对话框,对于错误没有更多的详细信息。
我们可以在SDK的安装目录的\epoc32\wins\c\system\bootdata 下创建一个ErrRD空文件,来获得更多错误信息(这个很多文章中都介绍过)。

系统将附加崩溃的类别和代号信息在所提供的错误信息中,当一个不能操作的级别发生时,实际的代号在错误信息的圆括号中。

ErrRD 文件也可以创建在目标设备上,它跟模拟器也有相似的想过。这个文件必须创建在“c:\system\bootdata”目录下。

注意:设备兼容S60 2nd,FP2和FP3在程序崩溃时,不在显示错误对话框。

在S60第三版中:
在S60第三版的模拟器中,扩展错误信息是默认的。如果他们没有被屏蔽,在SDK中的“Tools -> Preferences -> C++ Debug”查看“Extended panic code file”。

在目标设备上,查看c:\resource 目录下有没有ErrRd文件,实际上,有一种方式创建ErrRd文件,通过使用一个简单的SiS文件例如:

    ; ErrRd.pkg - Enables leave/panic dialogs

    &EN

    #{"ErrRd"}, (0xe1e444d0), 1, 0, 0

    %{"Forum Nokia"}

    :"Forum Nokia"

    [0x101F7961], 0, 0, 0, {"Series60ProductID"}

    "ErrRd.pkg"-"c:\resource\errrd"

上面的PKG代码用来产生一个SIS文件:[attach]48[/attach]
以下是S60 第三版上的图片:[attach]49[/attach]

注意1:如果在安装过程中,你出现了“证书错误”,请查看,“程序管理-设置-软件安装”,是否设置成“全部”
注意2: ErrRd文件的内容可以是空,这里只需要一个文件名即可。


 Attachment: Your usergroup does not have permission to access attachments




有其他问题请加入Symbian开发群参与讨论:群 ①:623041已满,群②:36865776已满 请加群③:76404484
Top
Lee
Administrator
Rank: 9Rank: 9Rank: 9



UID 2
Digest Posts 0
Credits 18567
Posts 133
Money 189
Reading Access 200
Registered 13-3-2007
Status Offline
Post at 10-4-2007 10:39  Profile | Blog | P.M. 
How can I get extended information in error messages?

Subject: How can I get extended information in error messages?
TSS000254

  Platform(s):
Devices:

S60 1st Edition

S60 2nd Edition
  

Category: Symbian C++

Subcategory: General

Description: S60 1st and 2nd Editions:

When an application panics, most S60 emulators display a simple ‘Program closed’ dialog without any details on the error.

By creating an empty file with the name ErrRD in the following directory

<SDK Install Dir>\epoc32\wins\c\system\bootdata

the system will append also panic category and panic code information in the error messages.  Also, when an unhandled leave occurs, the actual leave code is attached to the end of the error message in parentheses.

The ErrRD file can also be created in a target device, where it has a similar effect. The file must be created in the device memory in the directory

c:\system\bootdata

Note, however, that devices compatible with S60 2nd Edition, Feature Pack 2 and FP3 no longer display error dialogs in application panic situations.

S60 3rd Edition:

On S60 3rd Edition emulators, extended error messages are enabled by default. If they are not visible, check that 'Extended panic code file' is selected in Tools -> Preferences -> C++ Debug.

In a target device, the correct location for the ErrRd file is in c:\resource directory. In practice, the only way to create the ErrRd file is by using a simple SIS file. For example:

    ; ErrRd.pkg - Enables leave/panic dialogs

    &EN

    #{"ErrRd"}, (0xe1e444d0), 1, 0, 0

    %{"Forum Nokia"}

    :"Forum Nokia"

    [0x101F7961], 0, 0, 0, {"Series60ProductID"}

    "ErrRd.pkg"-"c:\resource\errrd"

A SIS file generated from the above .pkg source can be self-signed. Such a package is attached, ready for use.

An image that shows the effect of the ErrRd file on S60 3rd Edition

Note 1: If you get a "Certificate error" during installation of a self-signed package, check that App.Manager -> Settings -> Software Installation is set to "All".

Note 2: The contents of ErrRd file is not relevant - it can be an empty file.

原文地址




有其他问题请加入Symbian开发群参与讨论:群 ①:623041已满,群②:36865776已满 请加群③:76404484
Top
 


All times are GMT+8, the time now is 9-9-2010 20:14

CopyRight © Symbianx.cn 2007 Powered By Discuz! 5
Clear Cookies - Contact Us - Symbian OS系统[S60,UIQ]开发中文翻译论坛 - Archiver

本站原文版权归原文作者所有,本站译文版权归本站所有,如需转载请注明原文和译文出处,否则追究法律责任