Skip to content

Commit

Permalink
Updated some messages
Browse files Browse the repository at this point in the history
  • Loading branch information
daveleroy committed Mar 27, 2022
1 parent 83f73c9 commit ed2a66e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion modules/core/log.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from __future__ import annotations
from ..typecheck import *

import traceback

_should_log_exceptions = True
_should_log_error = True
_should_log_info = True
Expand All @@ -27,7 +29,6 @@ def error(*args: Any) -> None:


def exception(*args: Any) -> None:
import traceback
if not _should_log_exceptions:
return
print('Debugger:', *args, end='')
Expand Down
6 changes: 3 additions & 3 deletions modules/dap/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ async def _launch(self) -> None:

async def request(self, command: str, arguments: Any) -> Any:
if not self._transport:
raise core.Error('debugger not running')
raise core.Error(f'Debug Session {self.status}')

return await self._transport.send_request_asyc(command, arguments)

Expand Down Expand Up @@ -421,7 +421,7 @@ async def stop(self):
return


self._change_status('Stop requested')
self._change_status('Stop Requested')
self.stop_requested = True

# first try to terminate if we can
Expand Down Expand Up @@ -467,7 +467,7 @@ async def stop_forced(self, reason: int) -> None:
self.stop_debug_adapter_session()

await self.run_post_debug_task()
self._change_status('Debug session has ended')
self._change_status('Ended')

self.state = Session.State.STOPPED

Expand Down
4 changes: 2 additions & 2 deletions modules/debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from .watch import Watch


class Debugger (dap.SessionListener, dap.Debugger, core.Logger):
class Debugger (dap.Debugger, dap.SessionListener, core.Logger):

instances: dict[int, 'Debugger'] = {}
creating: dict[int, bool] = {}
Expand Down Expand Up @@ -211,7 +211,7 @@ def is_active(self):
@property
def active(self):
if not self.session:
raise core.Error("No active debug sessions")
raise core.Error("No Active Debug Sessions")
return self.session

@active.setter
Expand Down

0 comments on commit ed2a66e

Please sign in to comment.