mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Code reloading. Fixes #212
This commit is contained in:
parent
6ee41420e6
commit
9ab891b328
19 changed files with 1505 additions and 112 deletions
|
|
@ -79,6 +79,19 @@ class DebugConfig(collections.MutableMapping):
|
|||
"class_": "group",
|
||||
"protected": "inline",
|
||||
},
|
||||
"autoReload": {
|
||||
"enable": False,
|
||||
"watch_dirs": [],
|
||||
"pollingInterval": 1,
|
||||
"exclude": [
|
||||
"**/.git/**",
|
||||
"**/__pycache__/**",
|
||||
"**/node_modules/**",
|
||||
"**/.metadata/**",
|
||||
"**/site-packages/**",
|
||||
],
|
||||
"include": ["**/*.py", "**/*.pyw"],
|
||||
},
|
||||
}
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
|
|
|||
|
|
@ -138,7 +138,11 @@ class Session(object):
|
|||
self.config = config.DebugConfig(
|
||||
debug_config
|
||||
if debug_config is not None
|
||||
else {"justMyCode": True, "name": "Test", "type": "python"}
|
||||
else {
|
||||
"justMyCode": True,
|
||||
"name": "Test",
|
||||
"type": "python",
|
||||
}
|
||||
)
|
||||
"""The debug configuration for this session."""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue