<div dir="auto">There is a QDateTime  printer that requires calling a method  to get useful values.<div dir="auto"><br></div><div dir="auto">The problem is when I call the method from gdb the printer crashes because the variable does not exist yet thus the method does not exist in memory.</div><div dir="auto"><br></div><div dir="auto">Is there a way to check if a variable has been initialised ? </div><div dir="auto"><br></div><div dir="auto">I have tried `info locals`  but that shows all the variable in the current frame.</div><div dir="auto"><br></div><div dir="auto">I have tried to try and except the error like so </div><div dir="auto"><br></div><div dir="auto">```</div><div dir="auto">try: </div><div dir="auto">    call method here</div><div dir="auto">except Exception:</div><div dir="auto"><br></div><div dir="auto">``` </div><div dir="auto"><br></div><div dir="auto">But the Sigsegv exception is not a python exception </div><div dir="auto"><br></div><div dir="auto">I tried checking if the address is null but it's a valid address.</div><div dir="auto"><br></div><div dir="auto">What I am try to mimick is something similar to the LLDB `SBValue.isValid()`</div><div dir="auto"><br></div><div dir="auto">sbValue is similar to gdb.Value but for lldb</div><div dir="auto"><br></div><div dir="auto">see</div><div dir="auto"><a href="https://lldb.llvm.org/python_reference/lldb.SBValue-class.html">https://lldb.llvm.org/python_reference/lldb.SBValue-class.html</a></div><div dir="auto"><br></div><div dir="auto"> <a href="https://lldb.llvm.org/cpp_reference/classlldb_1_1SBValue.html#ae8d3e7cce0a22bd1fd59db8e3f37af7c">https://lldb.llvm.org/cpp_reference/classlldb_1_1SBValue.html#ae8d3e7cce0a22bd1fd59db8e3f37af7c</a></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div></div>