mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Sync with pydevd
This commit is contained in:
parent
202a5efbf2
commit
7a9b7baef7
3 changed files with 7 additions and 2 deletions
|
|
@ -24,7 +24,7 @@
|
|||
{
|
||||
"Component": {
|
||||
"Type": "pip",
|
||||
"pip": { "Name": "pydevd", "Version": "2.1.0" }
|
||||
"pip": { "Name": "pydevd", "Version": "2.4.1" }
|
||||
},
|
||||
"DevelopmentDependency": false
|
||||
},
|
||||
|
|
|
|||
|
|
@ -127,6 +127,8 @@ class PydevPlugin(Plugin):
|
|||
from io import StringIO
|
||||
s = StringIO()
|
||||
etype, value, tb = err
|
||||
if isinstance(value, str):
|
||||
return value
|
||||
import traceback;traceback.print_exception(etype, value, tb, file=s)
|
||||
return s.getvalue()
|
||||
return err
|
||||
|
|
|
|||
|
|
@ -114,7 +114,10 @@ def inputhook_wx3():
|
|||
try:
|
||||
app = wx.GetApp() # @UndefinedVariable
|
||||
if app is not None:
|
||||
assert wx.Thread_IsMain() # @UndefinedVariable
|
||||
if hasattr(wx, 'IsMainThread'):
|
||||
assert wx.IsMainThread() # @UndefinedVariable
|
||||
else:
|
||||
assert wx.Thread_IsMain() # @UndefinedVariable
|
||||
|
||||
# The import of wx on Linux sets the handler for signal.SIGINT
|
||||
# to 0. This is a bug in wx or gtk. We fix by just setting it
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue