14 import MainControlWindow
25 while i
< len(sys
.argv
):
27 if sys
.argv
[i
] == "--help":
30 elif sys
.argv
[i
] == "--vim-servername":
32 args
["--vim-servername"] = sys
.argv
[i
]
35 args
["cmd"] = string
.join(sys
.argv
[i
:])
48 f
.write("""Call pygdb with a specific command to be debugged.
52 %s [--vim-servername NAME] <command>
54 where <command> is the command to call the client that should
61 The servername of the vim to communicate with
62 """ % (sys
.argv
[0], sys
.argv
[0]) )
67 if __name__
== "__main__":
77 if "--help" in args
.keys():
81 if not "cmd" in args
.keys():
82 sys
.stderr
.write("Please give executeable to debug.")
85 if "--vim-servername" in args
.keys():
86 vimservername
= args
["--vim-servername"]
88 vimservername
= "pygdb"
93 dbgterm
= GdbTerminal
.GdbTerminal(args
["cmd"])
96 mainCtrlWnd
= MainControlWindow
.MainControlWindow(dbgterm
)
97 statusWnd
= StatusWindow
.StatusWindow(dbgterm
, vimservername
)
101 conf
= Configuration
.Configuration()
102 conf
.load(".pygdb.conf")
103 statusWnd
.applyConfiguration(conf
)
108 conf
= Configuration
.Configuration()
109 statusWnd
.fillConfiguration(conf
)
111 conf
.store(".pygdb.conf")
113 statusWnd
.updateVim()