I want to know how to debug caffe step by step. I can not find the main function
Hi,
have a look at ./tools/caffe.cpp, otherwise try using GDB, for example:
gdb --args ../../install/tools/caffe train --solver=testNet_solver.prototxt
Reading symbols from /public/home/kli/caffe/.build_release/tools/caffe...(no debugging symbols found)...done.
what's wrong?
You have to compile caffe with debug symbols:
cmake -DCMAKE_BUILD_TYPE=Debug
This is a general gcc/gdb question, you are probably better off having a look around stackoverflow and co for help on this kind of stuff.
Thank you very much, BIGene. I am not very familiar with linux
Wait, I messed up I updated my previous comment.
On Fri, Feb 6, 2015 at 1:18 AM, whjxnyzh [email protected] wrote:
Thank you very much, BIGene. I am not very familiar with linux
—
Reply to this email directly or view it on GitHub
https://github.com/BVLC/caffe/issues/1832#issuecomment-73164353.
How to debug C++ in general is out of scope for this, but thanks @BlGene for pointing out that the debug mode of the build needs to be turned on. Please discuss Caffe-specific gdb questions on caffe-users.
@whjxnyzh I have a post on this, hope it helps.
Most helpful comment
You have to compile caffe with debug symbols:
cmake -DCMAKE_BUILD_TYPE=Debug
This is a general gcc/gdb question, you are probably better off having a look around stackoverflow and co for help on this kind of stuff.