Hello,
i use the QtCreator and Vtk under linux for developing a CMake-project.
I build VTK in Debug and set the VTK_DIR via /etc/environment.
So when i use the QtCreator in debug mode i cant access any VtkOjects:
Any ideas or links i didnt found?
Thanks in advance
Hello,
Please, make sure the debugger cursor is in the same scope as the object to be inspected. From the little screen capture you posted, one sees a smart pointer. Smart pointers may not be valid outside its scope. Maybe you could share more of the context.
best,
PC
Thank you for the reply,
its also not possible if the vtkObjects are created in the same scope or the debugger cursor (guess you mean the breakpoint?) is in the same scope…
But i forget that i cant also do a myPolydata->PrintSelf(std::cout, vtkIndent())
which is ok for me…
But if anyone has the same problem and a solution please let me know.
Thanks so far
These are not the same thing. A breakpoint, when triggered, tells the debugger to stop there. The debugger cursor is where the debugger is currently stopped, which can be light-years away from any breakpoint (e.g. stop triggered by a condition or by exception thrown). The current execution point (where the debugger cursor is) must be such that the object to inspect is in still in scope to allow inspection.
Hello Paulo,
I see. I had the debugger cursor in my mind. I didnt know that word. Thank you, learned sth new!
What i am also wondering is, that when doing a myPolydata->PrintSelf(std::cout, vtkIndent())
in the ouput is all the information and also Debug: Off
? Dont know this hast something to do with the problem.
Thanks and nice Weekend
Philipp