Use private "_idedata" target when fetching data for debugging

This commit is contained in:
Ivan Kravets committed 2021-04-24 18:01:35 +03:00
1 parent b5b57790be
commit eb2cd001b6
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -219,7 +219,7 @@ if "envdump" in COMMAND_LINE_TARGETS:
click.echo(env.Dump())
env.Exit(0)
if "idedata" in COMMAND_LINE_TARGETS:
if set(["_idedata", "idedata"]) & set(COMMAND_LINE_TARGETS):
try:
Import("projenv")
except: # pylint: disable=bare-except
+1 -1
View File
@@ -155,7 +155,7 @@ def _load_project_ide_data(project_dir, env_names):
# pylint: disable=import-outside-toplevel
from platformio.commands.run.command import cli as cmd_run
args = ["--project-dir", project_dir, "--target", "idedata"]
args = ["--project-dir", project_dir, "--target", "_idedata"]
for name in env_names:
args.extend(["-e", name])
result = CliRunner().invoke(cmd_run, args)