Remote Debugging
Introduction
When working with CDP systems you will inevitably run into problems with your code that only seem to manifest once you remotely deploy them. To make it easier for you to solve these kinds of issues CDP Studio supports remote debugging. Functionally remote debugging works very similarly to local debugging but setting it up is a little bit more difficult.
Installing GDB Server
For remote debugging to work you will need to set up a GDB server on the remote machine you wish to remotely debug on.
Linux and Raspian
Installing GDB server on Linux and Raspian devices is as easy as executing the following command in the terminal:
sudo apt-get install gdbserver
A gdbserver version 7.10 or above is recommended. This will prevent errors and long waiting times if trying to step into function calls where no symbols are available. Execute the following in the terminal to check the version:
gdbserver --version
Windows
Unfortunately remote debugging on Windows machines is currently not supported.
Debugging Remotely
Similarly to local debugging it is possible to start applications in debugger from the Debug mode.
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.