2013-04-06 Robert Zhang
more ```cpp include include ifdef DEBUG include "../comm_headers/debug_helper.h" else define DEBUG_OUT(...) endif 继续阅读 »
2013-04-07 Robert Zhang
more ```cpp include include include ifdef DEBUG include "../comm_headers/debug_helper.h" else define DEBUG_OUT(...) endif 继续阅读 »
2016-01-10 veryyoung
为什么需要热部署? Java 程序员最幸福的事情是可以在等程序编译的时候泡 Java!!(开个玩笑) more 热部署的方案 Tomcat Reload Eclipse Debug 模式 IDEA Reload Jetty Jrebel 继续阅读 »
2017-10-17 ruki
xmake-vscode plugin is a xmake integration in Visual Studio Code. It is deeply integrated with xmake and vscode to provide a convenient and fast cross-platform c/c++ development and building. Features Colorization Completion Lists StatusBar Commands Configuration Build Run and Debug Record and Playback Problem Color 继续阅读 »
2016-02-05 ruki
新特性 自动检测所有系统libc接口,优先使用系统版本 支持自定义内存分配器,并且能够在debug模式下,获取每次分配的代码位置信息,用于自定义追踪 增加轻量级static_pool来维护整块buffer的内存分配,适合局部管理部分内存,pool虽然也能维护,但是底层基于large_pool,比较重量级,适合全局管理内存 增加stream快速读取全部数据到string的接口 增加adler32 hash算法 增加tb_memmem接口 采用pcre/pcre2/posix regex实现正则表达式库 改进 优化stream,支持对字符设备文件的读写 修改tb_init接口,增加allocator自定义内存分配器参数,实现用户的侵 继续阅读 »
2016-12-13 LEo
工作一年多了,项目中真正写代码的时间其实并不多,更多时候是在调试代码或者维护已有代码。调试代码或者维护已有代码难免要去读代码,如果是自己写的代码,那么读不懂只能怪自己写得不好,如果是别人写的代码,读不懂也只能怪自己,技不如人呗,开个玩笑而已,读不懂别人的代码说不定不是你的问题,也许是别人写的代码易读性和可维护性都不好,才导致你读起来费劲,难以理解。所以我结合自己的coding和debug经验,谈谈一些关于写代码的想法,先从以下3点谈起: 继续阅读 »
2016-02-05 ruki
New features Add automaticlly check libc interfaces Support custom allocator Add trace for allocator in the debug mode Add static_pool module Add stream interfaces for reading all data to string Add adler32 hash algorithm Add tb_memmem interface Add regex module with pcre, pcre2 or posix regex Changes Optimize stre 继续阅读 »
2016-07-07 ruki
xmake通过import接口,可以在自定义脚本中导入各种内置类库和扩展类库模块,使得xmake的插件开发具有更多的灵活性,提供更丰富的功能。 我们先看下,目前xmake提供的一些类库: . ├── _g.lua ├── assert.lua ├── catch.lua ├── coroutine.lua ├── debug.lua ├── finally.lua ├── format.lua ├── ifelse.lua ├── import │   └── core │   ├── base │   │  继续阅读 »
2016-07-16 ruki
xmake默认在编译完程序后,可以通过以下命令运行指定目标程序: bash $xmake run [target] [arguments] ... 并且在linux/macosx下面,目前已经支持关联调试器,去直接调试指定目标了,只需要加上-d/--debug参数选项: bash $xmake run -d [target] [arguments] ... 默认情况下,xmake在macosx下用的是lldb,在linux下用的是gdb,调试器xmake会在配置的时候去自动检测,如果需要指定调试器路径,可以手动去配置它: bash $xmake f --debugger=/usr/bin/gdb 继续阅读 »
2013-04-06 Robert Zhang
分析:运算时产生的大数可能会使32位整数溢出,需要使用64位的整数类型more ```cpp include include ifdef DEBUG include "../comm_headers/debug_helper.h" else define DEBUG_OUT(...) endif 继续阅读 »