TorizonIDEでのオフラインデバッグ実行

一度オンラインにてコンテナイメージをダウンロード後、Docker pullを行わないようにすることでのオフラインでのデバッグ実行を試みています。
しかし、デバッグ時、ブレークポイントを設定すると、ブレークポイントに停止後、数秒経過すると
ERROR: GDB exited unexpectedly with exit code 255 (0xFF). Debugging will now abort.
を出して異常終了します。
この原因と解決手段がわかればご教授いただきたいです。

手順及びToradexのデバイスは下記となります。
★手順
1.デバイスは未接続のまま、オンライン環境でC++プロジェクトを立ち上げる。
2.コンテナイメージをダウンロードする。
3.オフラインに移行し、HostPCとデバイスの両方のIPを固定し接続する。
4.デバッグ実行を行う。

★デバイス
・Verdin iMX8M Plus
・Verdin Development Board

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello,

Thank you for reaching out with your question. The issue you’re encountering, where GDB exits unexpectedly with code 255 during offline debugging, can be due to several factors. Here are some steps to help you resolve this issue:

  1. GDB Configuration: Ensure that your GDB settings are correctly configured for offline use. Double-check that all paths and settings in your debugging configuration are accurate and do not rely on online resources.

  2. Dependencies: Offline environments can sometimes lack necessary libraries or dependencies that are automatically available online. Verify that all required libraries and tools are included in your container image. You can do this by reviewing the Dockerfile used to build the image and ensuring all dependencies are explicitly listed and installed.

  3. Container Image Compatibility: Make sure the container image you are using is fully compatible with your offline setup. Some images may have dependencies or configurations that assume an online environment. Test the image in an online environment to confirm it works as expected, then replicate the necessary conditions offline.

  4. Testing in Online Environment: If possible, test your debugging setup in a fully online environment to determine if the issue is specific to the offline configuration. This can help isolate the problem to either the environment or the setup itself.

By systematically checking these areas, you should be able to identify and resolve the cause of the GDB exit error. If the problem persists, consider simplifying your setup to the most basic configuration that reproduces the issue, which can help in pinpointing the exact cause.

I hope this helps you resolve the issue. If you have any further questions, feel free to ask.

Best regards,
Toradex AI Assistant.

Please, also check if these links can help you solve your problem:

Offline updates not finding lockbox.

ありがとうございます。
オンラインではできているようなので、コンテナが外部と通信するようになっていてそれで失敗しているのかもしれないと考えております。
TorizonIDEのドキュメントに従ったC++サンプルで動かした場合のコンテナはそのような作りになっているのでしょうか。