Xcode 4.5 debugging skips section of a function when stepping through code, even with breakpoints set (c++) -
so have function here allegedly reads values .cfg file , file set correctly, values not being reflected changes make file. debug. problem skips on iterations value looked for! can't tell if it's accepting default value, or if else wrong.
bool configreader::getbool(const std::string thesection, const std::string thename, const bool thedefault) const { bool anresult = thedefault; // line have breakpoint set // check if thesection exists std::map<const std::string, typenamevalue*>::const_iterator iter; iter = msections.find(thesection); if(iter != msections.end()) { // try obtain name, value pair typenamevalue* anmap = iter->second; if(null != anmap) { typenamevalueiter iternamevalue; iternamevalue = anmap->find(thename); if(iternamevalue != anmap->end()) { anresult = parsebool(iternamevalue->second, thedefault); } } } // return result found or thedefault assigned above return anresult; // line skips (not help) }
i've tried putting breakpoints on lines in between skip, skips them anyway.
i'm not sure if issue related this, sounds similar: stepping through code stopping on stl code when debugging c++ xcode 4.5
anybody know happening here, or fix/avoid it? also, if posted incorrectly apologize in advance.
call getbool function:
mproperties.add<bool>("bmusicon", settingsconfig.getasset().getbool("music", "on", true));
Comments
Post a Comment