mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Fix focus hint on function breakpoint, set supportsFunctionBreakpoints on the debugpy side.
This commit is contained in:
parent
d7970b80ad
commit
75e5058b33
2 changed files with 4 additions and 1 deletions
|
|
@ -316,6 +316,7 @@ class NetCommandFactoryJson(NetCommandFactory):
|
|||
thread = pydevd_find_thread_by_id(thread_id)
|
||||
info = set_additional_thread_info(thread)
|
||||
|
||||
preserve_focus_hint = False
|
||||
if stop_reason in self._STEP_REASONS:
|
||||
if info.pydev_original_step_cmd == CMD_STOP_ON_START:
|
||||
|
||||
|
|
@ -334,6 +335,7 @@ class NetCommandFactoryJson(NetCommandFactory):
|
|||
stop_reason = 'goto'
|
||||
else:
|
||||
stop_reason = 'pause'
|
||||
preserve_focus_hint = True
|
||||
|
||||
if stop_reason == 'exception':
|
||||
exception_info_response = build_exception_info_response(
|
||||
|
|
@ -349,7 +351,7 @@ class NetCommandFactoryJson(NetCommandFactory):
|
|||
threadId=thread_id,
|
||||
text=exc_name,
|
||||
allThreadsStopped=True,
|
||||
preserveFocusHint=stop_reason not in ['step', 'exception', 'breakpoint', 'entry', 'goto'],
|
||||
preserveFocusHint=preserve_focus_hint,
|
||||
)
|
||||
event = pydevd_schema.StoppedEvent(body)
|
||||
return NetCommand(CMD_THREAD_SUSPEND_SINGLE_NOTIFICATION, 0, event, is_json=True)
|
||||
|
|
|
|||
|
|
@ -164,6 +164,7 @@ class Client(components.Component):
|
|||
"supportsEvaluateForHovers": True,
|
||||
"supportsExceptionInfoRequest": True,
|
||||
"supportsExceptionOptions": True,
|
||||
"supportsFunctionBreakpoints": True,
|
||||
"supportsHitConditionalBreakpoints": True,
|
||||
"supportsLogPoints": True,
|
||||
"supportsModulesRequest": True,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue