首先要看使用的是什么构建系统:
qmake
不需要额外的设置cmake
Debug需要在生成配置的时候进行额外参数设置qbs
???QtC在左下角的Debug按钮一定要在Debug模式下运行才能有效。
进入Debug模式如果是qmake
构建系统不需要额外配置。但是如果是cmake
则每次都要重新生成配置。
参考Debug with cmake and qtcreator可知生成配置的时候应当添加参数-DCMAKE_BUILD_TYPE=Debug
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
QMAKE_CXXFLAGS += -std=c++0x
git config --global user.name "Peijun Zhu"
git config --global user.email "zpj.ustc@gmail.com"
git config --global tar.tar.xz.command "xz -c"
git config --global core.excludesfile ~/.gitignore_global
ssh-keygen -t rsa -b 4096 -C "zpj.ustc@gmail.com"
cat id_rsa.pub
再把生成的内容贴入Github/Bitbucket等托管网站