Development

This chapter covers development tasks that are specific to the redpesk SDK container.

Build and run the sample

From inside the SDK container, follow the sample documentation:

Running those commands inside the SDK container uses the libraries and toolchain corresponding to the selected redpesk release.

Debug

For source-level debugging, configure a Debug build in the sample build directory:

cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
cmake --build build

The GDB helloworld-binding.so configuration from the project’s launch.json uses the cppdbg debugger type. In OpenVSCode Server, install an extension providing cppdbg support if one is not already available.

Set a breakpoint in the binding code, start the debug configuration, then invoke the API as described in Configuration and usage.

building and running service natively debug

Framework debug packages

Debug information for redpesk framework components can be installed directly in the SDK container. For example:

sudo dnf debuginfo-install afb-binder

This installs the matching debug information for the framework version provided by the selected SDK image.

Test

Use the sample’s Validation and testing chapter for the current test dependencies and commands.