阅读:1829回复:5
请问站长?
调试win98的vxd程序有什么好的工具?
有没有象dbgview那样的? |
|
沙发#
发布于:2001-07-11 16:21
vtoolsd中有vxd monitor呀,这个很好用的,这个只能说是监视输出。调试还是要用soft-ice.
|
|
|
板凳#
发布于:2001-07-11 16:26
但我不知道该怎么设置vxdmon ,你能告诉我吗?
|
|
地板#
发布于:2001-07-11 16:31
不用设置的,直接载入vxd文件(动态加载性的),然后按开始调试钮即可。
|
|
|
地下室#
发布于:2001-07-11 18:29
在Vxd中使用nprintf,用法也printf一样 输出结果就能显示到 Moniter 上 |
|
|
5楼#
发布于:2001-07-12 17:53
还是不行,在原程序中是调用DbgPrint来打印调试信息,下面是
DEBUG.H的内容: #if DEBUG #define IF_PACKETDEBUG(f) if ( PacketTraceImpt & (f) ) extern ULONG PacketTraceImpt; #define PACKET_TRACE_IMPT 0x00000001 // debugging info #define PACKET_DEBUG_VERY_LOUD 0x00000002 // excessive debugging info #define PACKET_DEBUG_INIT 0x00000100 // init debugging info #define PACKET_DEBUG_BREAK 0x00000200 // hit breakpoint when debugging // // Macro for deciding whether to dump lots of debugging information. // #define IF_BREAK_SET IF_PACKETDEBUG( PACKET_DEBUG_BREAK ) DbgBreakPoint() #define IF_INIT_TRACE(A) IF_PACKETDEBUG( PACKET_DEBUG_INIT ) { DbgPrint("Packet: %s\r\n", A); DbgBreakPoint(); } #define IF_TRACE(A) IF_PACKETDEBUG( PACKET_TRACE_IMPT ) { DbgPrint("Packet: %s\r\n", A); IF_BREAK_SET } #define IF_VERY_LOUD(A) IF_PACKETDEBUG( PACKET_DEBUG_VERY_LOUD ) { DbgPrint("Packet: %s\r\n", A); IF_BREAK_SET } #define IF_TRACE_MSG(A,B) IF_PACKETDEBUG( PACKET_TRACE_IMPT ) { DbgPrint("Packet: "); DbgPrint(A,B); DbgPrint("\r\n"); IF_BREAK_SET } #define IF_TRACE_MSG2(A,B,C) IF_PACKETDEBUG( PACKET_TRACE_IMPT ) { DbgPrint("Packet: "); DbgPrint(A,B,C); DbgPrint("\r\n"); IF_BREAK_SET } #define IF_TRACE_MSG3(A,B,C,D) IF_PACKETDEBUG( PACKET_TRACE_IMPT ) { DbgPrint("Packet: "); DbgPrint(A,B,C,D); DbgPrint("\r\n"); IF_BREAK_SET } #define IF_TRACE_MSG4(A,B,C,D,E) IF_PACKETDEBUG( PACKET_TRACE_IMPT ) { DbgPrint("Packet: "); DbgPrint(A,B,C,D,E); DbgPrint("\r\n"); IF_BREAK_SET } #define INIT_ENTER(A) IF_PACKETDEBUG( PACKET_DEBUG_INIT ) { DbgPrint("==> Packet: %s\r\n", A); DbgBreakPoint(); } #define INIT_LEAVE(A) IF_PACKETDEBUG( PACKET_DEBUG_INIT ) { DbgPrint("<== Packet: %s\r\n", A); IF_BREAK_SET } #define TRACE_ENTER(A) IF_PACKETDEBUG( PACKET_TRACE_IMPT ) { DbgPrint("==> Packet: %s\r\n", A); IF_BREAK_SET } #define TRACE_LEAVE(A) IF_PACKETDEBUG( PACKET_TRACE_IMPT ) { DbgPrint("<== Packet: %s\r\n", A); IF_BREAK_SET } #else #define IF_BREAK_SET #define IF_INIT_TRACE(A) #define IF_TRACE(A) #define IF_VERY_LOUD(A) #define IF_TRACE_MSG(A,B) #define IF_TRACE_MSG2(A,B,C) #define IF_TRACE_MSG3(A,B,D,E) #define IF_TRACE_MSG4(A,B,D,E,F) #define INIT_ENTER(A) #define INIT_LEAVE(A) #define TRACE_ENTER(A) #define TRACE_LEAVE(A) #define IF_PACKETDEBUG(f) if ( 0 ) #endif |
|