Beispiel #1
0
 def run_main(self) -> None:
     main = DebuggerInterface.forWindow(self.window)
     if main:
         main.show()
         self.on_main(main)
     else:
         print('No debugger open for window, ignoring command')
Beispiel #2
0
	def get_completions(self, view: sublime.View, text: str) -> core.awaitable[None]:
		from sublime_db.main.debugger_interface import DebuggerInterface

		window = view.window()
		m = DebuggerInterface.forWindow(window)
		if m:
			adapter = m.debugger.adapter
		if not adapter:
			return
		self.completions = yield from adapter.Completions(text, len(text) + 1, m.debugger.frame)
		view.run_command("hide_auto_complete")
		view.run_command("auto_complete", {
                    'disable_auto_insert': True,
                    'next_completion_if_showing': False
                })
Beispiel #3
0
 def on_main(self, main: DebuggerInterface) -> None:
     main.on_step_over()
Beispiel #4
0
 def on_main(self, main: DebuggerInterface) -> None:
     main.on_pause()
Beispiel #5
0
 def on_main(self, main: DebuggerInterface) -> None:
     main.on_stop()
Beispiel #6
0
 def is_enabled(self) -> bool:
     return not DebuggerInterface.forWindow(self.window) or DebuggerInState(
         self.window, DebuggerState.stopped)
Beispiel #7
0
 def on_main(self, main: DebuggerInterface) -> None:
     main.dispose()
Beispiel #8
0
 def run_main(self) -> None:
     main = DebuggerInterface.forWindow(self.window, True)
     assert main
     main.show()
Beispiel #9
0
 def is_visible(self) -> bool:
     return DebuggerInterface.forWindow(self.window) is not None
Beispiel #10
0
def DebuggerInState(window: sublime.Window, state: int) -> bool:
    debugger = DebuggerInterface.debuggerForWindow(window)
    if debugger and debugger.state == state:
        return True
    return False
Beispiel #11
0
 def on_main(self, main: DebuggerInterface) -> None:
     main.refresh_phantoms()
Beispiel #12
0
 def on_main(self, main: DebuggerInterface) -> None:
     core.run(main.SelectConfiguration())
Beispiel #13
0
 def on_main(self, main: DebuggerInterface) -> None:
     main.open_repl_console()
Beispiel #14
0
 def on_main(self, main: DebuggerInterface) -> None:
     main.on_resume()