'Run winpdb to debug current file'

@Slot()
def run_winpdb(self):

    if self.save():
        fname = self.get_current_filename()
        runconf = get_run_configuration(fname)
        if (runconf is None):
            args = []
            wdir = None
        else:
            args = runconf.get_arguments().split()
            wdir = runconf.get_working_directory()
        programs.run_program(WINPDB_PATH, ([fname] + args), cwd=(wdir or None))
