Ricardo Amendoeira
2017-01-20 10:50:20 UTC
Hello,
I want to implement a new type of sharding (by 2dsphere coordinates) to
MongoDB as part of my thesis.
I'm having a really hard time with debugging on Linux.
I have compiled mongo, mongod and mongos with the --dbg=on and --opt=off
options, I run Nemiver (a gdb frontend) with the mongos from
build/debug/mongo, with the working directory build/debug/mongo.
When I set my breakpoints they do stop the program execution but I can't
see local variables (other than some local variable called 'indexes' which
seems useless to me) and when I click next it often complains that it can't
find a source file (the file it looks for seems to be a temporary file
created during the build process, which indeed does not exist) and jumps to
assembly.
I think part of my problem is that mongos has more than one thread, is
there a way to compile it to use a single thread?
The issue regarding the missing source file I'm not sure what it could be,
any ideas?
What best practices are there for debugging mongodb and what tools do you
recommend?
Thank you :)
I want to implement a new type of sharding (by 2dsphere coordinates) to
MongoDB as part of my thesis.
I'm having a really hard time with debugging on Linux.
I have compiled mongo, mongod and mongos with the --dbg=on and --opt=off
options, I run Nemiver (a gdb frontend) with the mongos from
build/debug/mongo, with the working directory build/debug/mongo.
When I set my breakpoints they do stop the program execution but I can't
see local variables (other than some local variable called 'indexes' which
seems useless to me) and when I click next it often complains that it can't
find a source file (the file it looks for seems to be a temporary file
created during the build process, which indeed does not exist) and jumps to
assembly.
I think part of my problem is that mongos has more than one thread, is
there a way to compile it to use a single thread?
The issue regarding the missing source file I'm not sure what it could be,
any ideas?
What best practices are there for debugging mongodb and what tools do you
recommend?
Thank you :)
--
You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-dev+***@googlegroups.com.
To post to this group, send email to mongodb-***@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-dev/fa3e115a-e7af-4da7-9793-2084762d0b19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-dev+***@googlegroups.com.
To post to this group, send email to mongodb-***@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-dev/fa3e115a-e7af-4da7-9793-2084762d0b19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.