-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
110 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from pydantic import Field | ||
|
||
from src.util.env_config import PydanticBaseEnvConfig | ||
|
||
|
||
class DebugAdapterProtocolConfig(PydanticBaseEnvConfig): | ||
enable: bool = Field( | ||
default=False, | ||
description="Enable debug mode. Overwritten to True when running a debug make target", | ||
) | ||
host: str = Field(default="0.0.0.0", description="The host for the debugger to listen on") | ||
port: int = Field(default=5678, description="The port for the debugger to listen on") | ||
|
||
wait_for_client: bool = Field( | ||
default=True, description="Whether to wait for the debugger client to attach" | ||
) | ||
wait_for_client_message: str = Field( | ||
default="Waiting for remote attach debugger...", | ||
description="Message to log when waiting for debugger", | ||
) | ||
|
||
class Config: | ||
env_prefix = "DEBUG_ADAPTER_PROTOCOL_" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters