[{"createTime":1735734952000,"id":1,"img":"hwy_ms_500_252.jpeg","link":"https://activity.huaweicloud.com/cps.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=V1g3MDY4NTY=&utm_medium=cps&utm_campaign=201905","name":"华为云秒杀","status":9,"txt":"华为云38元秒杀","type":1,"updateTime":1735747411000,"userId":3},{"createTime":1736173885000,"id":2,"img":"txy_480_300.png","link":"https://cloud.tencent.com/act/cps/redirect?redirect=1077&cps_key=edb15096bfff75effaaa8c8bb66138bd&from=console","name":"腾讯云秒杀","status":9,"txt":"腾讯云限量秒杀","type":1,"updateTime":1736173885000,"userId":3},{"createTime":1736177492000,"id":3,"img":"aly_251_140.png","link":"https://www.aliyun.com/minisite/goods?userCode=pwp8kmv3","memo":"","name":"阿里云","status":9,"txt":"阿里云2折起","type":1,"updateTime":1736177492000,"userId":3},{"createTime":1735660800000,"id":4,"img":"vultr_560_300.png","link":"https://www.vultr.com/?ref=9603742-8H","name":"Vultr","status":9,"txt":"Vultr送$100","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":5,"img":"jdy_663_320.jpg","link":"https://3.cn/2ay1-e5t","name":"京东云","status":9,"txt":"京东云特惠专区","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":6,"img":"new_ads.png","link":"https://www.iodraw.com/ads","name":"发布广告","status":9,"txt":"发布广告","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":7,"img":"yun_910_50.png","link":"https://activity.huaweicloud.com/discount_area_v5/index.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=aXhpYW95YW5nOA===&utm_medium=cps&utm_campaign=201905","name":"底部","status":9,"txt":"高性能云服务器2折起","type":2,"updateTime":1735660800000,"userId":3}]
F5 开始调试
Shift + F5 停止调试
Ctrl + Shift + F5 重新启动调试
F9 设置或删除断点
Ctrl + Shift + F9 删除所有断点
F10 逐过程执行
Ctrl + F10 (启动调试) 运行到当前行
F11 逐语句执行
Shift + F11 跳出当前执行的函数体部分
F12 转到定义或实现
Ctrl + K + C 注释选定行
Ctrl + K + U 取消注释选定行
Ctrl + K + K 在当前语句上添加书签,方便定位
F2 导航到下一个书签 ****
Shift + F2 导航到上一个书签
Ctrl + Enter 在当前行插入空行
Ctrl + Shift + Enter 在当前行下方插入空行
Alt + Shift + 方向键(或鼠标框选) 选择代码块
Tab 增加缩进
Shift + Tab 减少缩进
Ctrl + - 让光标移动到它上一次所在的位置
Ctrl + H 快速替换
Ctrl + 上下方向键 滚动窗口但不移动光标
Alt + Shift + = 选中光标所在的词
在红色断点符号上右键选"条件"可以设置特定条件下才触发断点
鼠标悬停可以查看表达式的值,也可以在调试中更改表达式的值
拖动黄色调试箭头符号到指定位置,可以重新执行之前代码或跳过特定代码
Ctrl+Alt+I 打开即时窗口
即时窗口内键入 ">" 进入即时窗口命令模式
即时窗口内键入 "?varname" 即时窗口打印varname值
即时窗口内键入 "varname=x " 改变varname的值
即时窗口内键入 ">cls" 清除即时窗口
(即时窗口的意义在于对变量执行稍微复杂一点的赋值运算,如果是简单变量的赋值,鼠标悬停修改更方便些)
添加dll路径方法
项目->属性->配置属性->调试->环境
PATH=D:\xxx\xxx;C:\xxx\xxx
* 1. “=”前后不加空格
* 2. 路径之间用“;”分隔
* 3. 注意“配置”处是Debug还是Release(下图红框位置)