//debug其实主要是处理变参函数,然后发送数据到另一个debug窗口 //Dlg.cpp #include "debugData.h" void debugDlg(LPTSTR lpdebugInfo, ...) { //处理参数信息 va_argList *pList = new va_argList; if(pList == NULL) return; BOOL bSetNode = FALSE; char sMsg[1024]; memset(sMsg, 0, 1024); char *pStr = lpdebugInfo; int i = 0; while(*pStr != '/0') { if(*pStr == '%') { pStr++; if(*pStr != ...
by 杨竹青 - OpenAPI - 2008-07-28 16:00:57 阅读(2319) 回复(0)
我们最开始写脚本的时候总是比较简单的,慢慢的脚本写的越来越复杂,这个时候我们在写的过程中就会遇到些问题,最开始的时候我总是不停的试,不停的改,最后还是可以折腾出来的,不过效率比较低。 后来我无意中看到一遍文章讲Linux的一些技巧的,里面提到在脚本的开始添加 set -x 这么一句,它可以让我们看到脚本执行的时候每一句的输出结果,有了这个在写脚本的时候就比较快了,它怎么用呢? 1. 我们可以在脚本开始的地方加入这个...
# ./mtd_debug usage: mtd_debug info mtd_debug read mtd_debug write mtd_debug erase ep9312开发板上没有任何文件系统flash数据读取 # ./mtd_debug read /dev/mtd2 0 100 gliethttp.bin;hexdump gliethttp.bin -Cv Copied 100 bytes from address 0x00000000 in flash to gliethttp.bin 00000000 1f 8b 08 00 ca 14 7d 4a 02 03 e4 5a 0f 70 93 e7 |......}J...Z.p..| 00000010 79 7f 3...
先看看我用的是个什么机器: $ uname -a Linux dev 2.4.21-9.30AXsmp #1 SMP Wed May 26 23:37:09 EDT 2004 i686 i686 i386 GNU/Linux 再看看默认的一些参数,注意core file size是个0,程序出错时不会产生core文件了。 $ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max locked memory (kbytes, -l) 4 max memory size (kbytes, -m) unlimited open files (...
:D 很有趣的debug程序,大家自己看看吧! e100 33 f6 bf 0 20 b5 10 f3 a5 8c c8 5 0 2 50 68 13 1 cb e 1f be a1 1 bf 0 1 e11b 6 57 b8 11 1 bb 21 13 89 7 4b 4b 48 79 f9 ad 86 e0 8b c8 bd ff ff e8 20 e134 0 3d 0 1 74 1a 7f 3 aa eb f3 2d ff 0 50 e8 f 0 5a f7 d8 8b d8 26 8a 1 aa e14f 4a 75 f9 eb de cb 57 bb 21 13 8b c1 40 f7 27 f7 f5 8b fb ba 11 1 4f 4f 4a e168 39 5 7f f9 52 8b c5 f7 25 f7 37 2...
出自《Linux Shell脚本攻略》 P23 #!/bin/bash function debug() { [ "$_debug" == "on" ] && $@ || : } for i in {1..10} do debug echo $i done 这个脚本怎么解释? $_debug是什么,怎么理解?
1. debug dom0 and dom u http://lists.xensource.com/archives/html/xen-devel/2008-10/msg00195.html 2. build option : Xen provides a number of build-time options which should be set as environment variables or passed on make's command-line. verbose=y Enable debugging messages when Xen detects an unexpected condition. Also enables console output from all domains. debug=y Enable debug assert...