Debugger cannot evaluate function calls like myStringList.contains("bla")
Can anybody tell me why the integrated debugger cannot evaluate expressions like
myStringList.indexOf("x") or myStringlist.contains("y")
Are those functions optimized (removed) by the compiler or is there another reason?
about which debugger are we talking here?
To answer your question: Because the debugger most probably doesn't find the debug symbols. (e.g. PDB files in case of CDB/MSVC debugger on windows)
we are talking about gdb (C:\Qt\Tools\mingw491_32\bin\gdb.exe) and all normal expressions are evaluated correctly. Only the specified function calls (and maybe some others) don't work.