Forrest logo
back to the pio tool

pio-debug:tldr:c5865

pio-debug: Debug a specific environment.
$ pio debug --environment ${environment}
try on your machine

This command is used to start the debugging session for a PlatformIO project.

The "--environment" flag is used to specify the environment configuration you want to use for debugging. Environment configurations allow you to define different settings for different platforms or boards in your project.

The "${environment}" is a placeholder that needs to be replaced with the actual environment name you want to use for debugging. For example, if you have defined an environment named "arduino_uno" in your platformio.ini file, you would replace "${environment}" with "arduino_uno" in the command.

So, when you run this command with the correct environment specified, it initiates the debugging session for your PlatformIO project using the specified environment configuration.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pio tool