文章分类 -  程序调试问题

上一页 1 2 3 4 5

VAssistX toos find references result 调试
摘要: 阅读全文

posted @ 2019-09-11 19:21 lydstory 阅读(220) 评论(0) 推荐(0) 编辑

宏定义调试
摘要:参数化 调试 为了速度快 发布和调试程序分开 宏定义 阅读全文

posted @ 2019-09-11 17:33 lydstory 阅读(273) 评论(0) 推荐(0) 编辑

奇葩的调试方法
摘要:外部程序调用 CreateProcessA(nullptr, exe_path, nullptr, nullptr, TRUE, CREATE_NEW_CONSOLE | CREATE_BREAKAWAY_FROM_JOB, nullptr, nullptr, &si, &pi); 启动一个控制台程 阅读全文

posted @ 2019-06-24 11:12 lydstory 阅读(140) 评论(0) 推荐(0) 编辑

输出注册表开机启动项缺少一项
摘要:由于max_path最大字符260字节,启动项目中路径多于260字节导致while循环中断,已修改为路径最大字符为2048字节。 今天解决一个测试提的bug,别人写的代码。跟踪测试居然是字节长度不够,难道现在的程序员对资源吝啬到如此地步吗? 路径长度 和 注册表长度 就设置最大260字节? why? 阅读全文

posted @ 2019-04-17 15:37 lydstory 阅读(110) 评论(0) 推荐(0) 编辑

小节失大气
摘要:看看这代码 真是高手啊,光驱内文件打不开,原来文件名少个t 据说:fstream 确实打不开 帮同事测试下,着急,文件名少复制了个t 什么叫粗心 确实打不开 阅读全文

posted @ 2019-04-09 17:02 lydstory 阅读(158) 评论(0) 推荐(0) 编辑

localtime引起安全时间问题
摘要:https://blog.csdn.net/dan15188387481/article/details/49622783 记住:千万不要随便用localtime_s转换 (可能出现指针错误) 阅读全文

posted @ 2019-04-02 17:28 lydstory 阅读(741) 评论(0) 推荐(0) 编辑

vs release 生成debug信息
摘要:设置在Release模式下调试的方法: 1.工程项目上右键 -> 属性 2.c++ -> 常规 -〉调试信息格式 选 程序数据库(/Zi)或(/ZI), 注意:如果是库的话,只能(Zi) 3.c++ -> 优化 -〉优化 选 禁止(/Od) 4.连接器 -〉调试 -〉生成调试信息 选 是 (/DEB 阅读全文

posted @ 2019-03-14 02:01 lydstory 阅读(283) 评论(0) 推荐(0) 编辑

sizeof(smartValues, 0, sizeof(ST_SMART_INFO));
摘要:sizeof(smartValues, 0, sizeof(ST_SMART_INFO)); 跳过一个结构体 sizeof 指向第17个字节 阅读全文

posted @ 2019-03-13 21:38 lydstory 阅读(239) 评论(0) 推荐(0) 编辑

system("pause");
摘要:system("pause"); 程序暂停 远程调试程序 使用 相当重要 阅读全文

posted @ 2019-03-13 21:10 lydstory 阅读(240) 评论(0) 推荐(0) 编辑

vs2013 远程调试
摘要:1.工具-》附加进程 远程ip的进程 每次编译必须把release 下exe发送到远程机 D:\vs2013\Common7\IDE\Remote Debugger 远程debug拷贝到远程机 执行下面msvsmon.exe 阅读全文

posted @ 2019-03-13 14:41 lydstory 阅读(188) 评论(0) 推荐(0) 编辑

Visual Leak Detector检测内存泄露
摘要:Visual Leak Detector是一个比较好的内存泄露检测工具,可以在http://vld.codeplex.com/releases下载,目前更新到v2.4版本。下载以后,进行安装。我的安装目录是D:\Program Files (x86)。 1.在stdafx.h头文件中添加如下代码:# 阅读全文

posted @ 2019-03-03 10:06 lydstory 阅读(240) 评论(0) 推荐(0) 编辑

Error D8016 '/ZI' and '/Gy-' command-line options are incompatible
摘要:错误原型: VS2015, 1>cl : Command line error D8016: '/ZI' and '/Gy-' command-line options are incompatible 解决办法: 右键点击工程——》properties——》C/C++——》Debug Inform 阅读全文

posted @ 2017-11-15 17:26 lydstory 阅读(377) 评论(0) 推荐(0) 编辑

不要相信你的眼睛-程序问题
摘要:调试http协议,每次发送POST数据得到: sRequest2 = 0x05c0cc5c "POST /usbctl?auth_token=123 HTTP/1.1\r\nHost: 127.0.0.1:90\r\nUser-Agent: Mozilla/5.0 (Windows NT 6.1; 阅读全文

posted @ 2017-11-02 22:15 lydstory 阅读(98) 评论(0) 推荐(0) 编辑

wireshark抓包工具
摘要:tcp port 90 阅读全文

posted @ 2017-11-02 18:39 lydstory 编辑

调制http协议自动发送post/get/options协议
摘要:调制http协议自动发送post/get/options协议 火狐浏览器 安装插件RestClient 阅读全文

posted @ 2017-11-02 11:34 lydstory 阅读(123) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示