|
发表于 2006-7-28 16:49:48
|
显示全部楼层
21楼的修改意见(续)
At this point you'll want to start experimenting with your application. It would be very tedious to create a new application version for each change. It's far easier to use BOINC's anonymous platform mechanism. To do this:
* Following the directions, create a file 'app_info.xml' in the client's project_* directory, with the appropriate name and version number of your application.
* Each time your build a new version of your application, copy the executable into the project_* directory, making sure it has the appropriate name. Then restart the core client.
这时你可能想要开始对你的计算程序进行测试,而如果每次对程序进行修改后都要创建一个计算程序版本将非常麻烦。而如果使用BOINC的 匿名平台 机制将会方便许多。方法如下:
按照 指南,在客户端的project_*目录中,新建一个'app_info.xml'文件,其中应当包括计算程序的正确名称以及版本号。
每当你生成了一个新版本的计算程序,将执行文件复制到project_*目录并确实其名称是正确的。然后重启客户端。
On Unix, it's possible to attach a debugger to a running process. Use 'ps' to find the process ID of your application, then something like
gdb exec_filename PID
to attach a debugger to it.
在Unix上,可以将调试器挂接在一个运行中的进程上。使用ps命令找到你的计算程序的进度ID,然后运行如下命令就可以将调试器挂接上去:
gdb exec_filename PID
Getting and deciphering stack traces
得到并解读堆栈跟踪信息
Once your application is working on your own computers, you're ready to test it with outside computers (alpha testers initially). It may crash on some computers, e.g. because their software or hardware is different from yours. You'll get some information back in the stderr_txt field of the results. If your application called boinc_init_diagnostics() with the BOINC_DIAG_DUMPCALLSTACKENABLED flag set, and you included symbols, hopefully you'll get symbolic stack traces.
一旦你的计算程序可以在你自己的计算机上正常运行,你将会在其它计算机上对它进行测试(最初的alpha测试)。程序可能会在一些计算机上出错,也许因为那些计算机上的软硬件和你的计算机不同。你可以在计算结果的stderr_txt字段中得到一些信息。如果你的计算程序在调用boinc_init_diagnostics时设置了BOINC_DIAG_DUMPCALLSTACKENABLED标志位并且你将符号编译进了计算程序,你将很有希望得到符号化的堆栈跟踪信息。
To decipher a Windows stack trace go here.
要了解如何解读Windows平台的堆栈跟踪信息,请点击 这里。
Otherwise, you should at least get numeric (hex) stack traces. You can decipher these by running a symbolic debugger with an unstripped version and typing in the hex addresses. See http://developer.apple.com/techn ... 3.html#SECNOSYMBOLS
否则,你至少应该能得到数值化(十六进制)的堆栈跟踪信息。你可以对未strip的程序版本运行一个符号调试器,并在其中输入十六进制的地址。详细请查看:
http://developer.apple.com/techn ... 3.html#SECNOSYMBOLS |
评分
-
查看全部评分
|