Debugging Arduino Create projects
Step 1. Create a run configuration
- Click the black drop-down arrow next to theRunicon. ChooseRun Configuration.
- The Run Configurations dialog box opens. Double-click to expandC/C++ Remote Application. Confirm that the name of the configuration and the name of the project are as desired.
- To choose the application to run, click theSearch Project(1) button and select the binary to run.In the current example, we'll chooseBlink_copy(2). ClickOK(3).
- Verify the build configuration options are set as needed.
- In theRemote Absolute File Path for C/C++ Applicationfield (1), provide the file name that the remote device should receive.Do not enter a directory.In the example below, the file name is/tmp/blink.
Step 2. Set up a remote connection
- On the Run Configurations dialog box, clickNew(1), next to the Connection field. From theChoose connection typedrop-down list, selectSSH(2). ClickOK(3).The New Connection properties dialog box opens, as shown below.
- On the New Connection dialog box (above), enter the connection information, as follows.
- Connection name: Enter a name for this connection.
- Host: Enter the IP address of the remote device.
- User: Enter the user name to use when logging into the device. You'll need to provide login details for either public key or password-based authentication:
- Public key: If the application accesses hardware sensors, LEDs, or requires elevated privileges, you need to use public key based authentication.
- First, generate the public keys. For instructions, see SSH Connection: Password-less Access to Remote Linux* Target. Set up your key as the root user. Select thePublic key based authenticationoption. If logging in as the root user, use public key-based authentication by providing the key file in .
- Password-based: You can log in as any user. Select thePassword based authenticationoption, then provide your login Password.
- Provide any remaining advanced settings, if applicable.Make sure the proxies are correctly set or unset, based on your network requirements.
- ClickFinishto return to the Run Configurations dialog box.
Step 3. Run the application
- ClickRun.The application will run at the location specified. It can be verified by checking if the location in the device has the binary expected with the right access permissions.
- Provide any remaining advanced settings, if applicable.
- Make sure the proxies are correctly set or unset, based on your network requirements.
- In theRemote Absolute File Path for C/C++ Applicationfield, provide the file name that the remote device should receive.Do not enter a directory. In the current example, it is/tmp/blink. ClickRun.
- The application will run at the location specified. It can be verified by checking if the location in the device has the binary expected with the right access permissions.