Skip to content

Commit 57c92e8

Browse files
committed
Respect disabling debugging server from platformio.ini
1 parent e8c0b85 commit 57c92e8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

HISTORY.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ PlatformIO Core 5
1313

1414
- Improved support for private packages in `PlatformIO Registry <https://registry.platformio.org/>`__
1515
- Improved checking of available Internet connection for IPv6-only workstations (`pull #4151 <https://github.com/platformio/platformio-core/issues/4151>`_)
16+
- Respect disabling debugging server from "platformio.ini" passing an empty value to the `debug_server <https://docs.platformio.org/en/latest/projectconf/section_env_debug.html#debug-server>`__ option
1617

1718
5.2.4 (2021-12-15)
1819
~~~~~~~~~~~~~~~~~~

platformio/debug/config/base.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,14 @@ def _load_build_data(self):
153153
raise DebugInvalidOptionsError("Could not load a build configuration")
154154

155155
def _configure_server(self):
156+
# user disabled server in platformio.ini
157+
if "debug_server" in self.env_options and not self.env_options.get(
158+
"debug_server"
159+
):
160+
return None
161+
156162
result = None
163+
157164
# specific server per a system
158165
if isinstance(self.tool_settings.get("server", {}), list):
159166
for item in self.tool_settings["server"][:]:

0 commit comments

Comments
 (0)