We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to use gdb to debug my app. But when I run
cocos run -s ~/my/HelloWorld -p linux -m debug
it still cannot use gdb or CCLOG.
After researchment, I find that: tools/cocos2d-console/plugins/project_compile/project_compile.py Line 1242~1243
with cocos.pushd(build_dir): self._run_cmd('cmake %s' % os.path.relpath(cmakefile_dir, build_dir))
may be changed to:
with cocos.pushd(build_dir): if self._mode == 'debug': self._run_cmd('cmake -DCMAKE_BUILD_TYPE=Debug %s' % os.path.relpath(cmakefile_dir, build_dir)) else: self._run_cmd('cmake -DCMAKE_BUILD_TYPE=Release %s' % os.path.relpath(cmakefile_dir, build_dir))
The text was updated successfully, but these errors were encountered:
@antkillerfarm Thanks for your feedback. I have fixed this problem on branch v3 by this PR: #10591
The related PR of cocos2d-console is : cocos2d/cocos2d-console#226
Also, I will fix the problem on branch v4 with this issue: #10593
Thank you once more!
Sorry, something went wrong.
natural-law
No branches or pull requests
I want to use gdb to debug my app.
But when I run
cocos run -s ~/my/HelloWorld -p linux -m debug
it still cannot use gdb or CCLOG.
After researchment, I find that:
tools/cocos2d-console/plugins/project_compile/project_compile.py Line 1242~1243
may be changed to:
The text was updated successfully, but these errors were encountered: