Hello all,<div><br></div><div>I&#39;ve written a qgis plugin for my company, and I&#39;m having some problems debugging it.  I&#39;m using an qcompleter to provide autocomplete functionality, and it&#39;s....well, not really working out.  The plugin is somehow crashing QGIS, but I don&#39;t know how; or how to log where things are going wrong.  Here&#39;s my setup...</div>
<div><br></div><div><div>    def autocompleteSetup(self, text):</div><div>      if(len(text) == 4):</div><div>        buttonName = self.getCheckedButton()</div><div>        searcher = self.searchFactory.getSearcher(buttonName)</div>
<div>        result = searcher.autocomplete_execute(text)</div><div>        resultArray = QStringList()</div><div>        self.result = result</div><div>        for i in result:</div><div>          resultArray.append(i[0])</div>
<div>        </div><div>        if(len(result) &gt; 0):</div><div>          self.autoCompleter = QCompleter(resultArray)</div><div>          self.autoCompleter.setCaseSensitivity(0)</div><div>          self.autoCompleter.setModelSorting(2)</div>
<div>          self.autoCompleter.connect( \</div><div>            self.autoCompleter, \</div><div>            SIGNAL(&quot;activated(QString)&quot;), \</div><div>            self.goToLocation)</div><div>          self.textBoxQuery.setCompleter(self.autoCompleter)</div>
</div><div><br></div><div>Now I&#39;ve riddled this thing with file outputs (to try to see what&#39;s up) but from everything I can tell, it&#39;s not dying within this function; the app crashes shortly after it executes (sporadically -- it doesn&#39;t consistently crash.).  But none of my code runs after this.  So in short; what I really need is a way to debug here.  File outputs...really not ideal.  Perhaps a way to output to the console?  I&#39;m kinda stuck either way, though -- I&#39;m not sure where to go from here.  Perhaps most frustratingly, my completer isn&#39;t dealing with alpha characters from addresses I&#39;m using.  (I&#39;m doing an address search with autocomplete here).  So I&#39;ll type &quot;123 &quot; and get a list of addresses, but then I type &quot;C&quot; or &quot;c&quot; for the name of the street, and it disappears.  </div>
<div><br></div><div>Does anyone else have any ideas as to what&#39;s up with this?  Any pointers in the right direction would be appreciated....  Thanks!</div>