I have just started using pycharm with qgis but could not connect both of them. Pycharm always stays in a state of "waiting for connection". Most the tutorials available points to the windows but I am using ubuntu so could not find way to debug qgis code on pycharm. Here is my pycharm code:
from shapely.geometry import * from shapely.wkt import loads import sys import pydevd pydevd.settrace('localhost', port=53100, stdoutToServer=True, stderrToServer=True) class Loader: def __init__(self, iface): """Initialize using the qgis.utils.iface object passed from the console. """ self.iface = iface
I have enabled breakpoints in the pycharm and also added the pycharm-debug.egg in the pythonpath does anybody how configure it from qgis on ubuntu?
pycharm is always in:
Starting debug server at port 53100 Use the following code to connect to the debugger: import pydevd pydevd.settrace('localhost', port=53100, stdoutToServer=True, stderrToServer=True) Waiting for process connection...
When I run this script on the top from qgis nothing happens, the breakpoint does not get called.