摘要:
需求 程序使用assert(bool_expression)进行断言,希望能在中断时给出提示信息。 实现 使用&&连接表达式,字符串作为非空指针,bool值为true不会影响结果。 assert(a == b && "A is not equal to B"); 参考 c++ - Add custo 阅读全文
摘要:
需求 想再pytorch源码里打断点调试,而断点无法跑进三方库 参考网上删除*.egg文件不起作用 实现 添加对应launch.json并设置"justMyCode": false即可生效 { // Use IntelliSense to learn about possible attribute 阅读全文