Debugging without sandbox

I am unable to debug a HelloWorld application in developer studio when it runs with sandboxed: false

Launching it on remote, without debugging works fine.
Manually running GDBServer on the remote and connecting to it works fine too

Has anyone had any issues with this before?

Errors I get when debugging in developer studio:

  • Program exit with 1 when starting to run
  • Previous error, causes GDB server to shut down =>

My setup:

  • MangOH developer board version - REV 7 (not MangOH green)
  • WP85xx module
  • Ubuntu 15.10
  • Developer Studio Build Version
  • Legato Framework.16.1.0.Beta

Reasons for running without a sandbox:

  • setup + access to ttyHSL0
  • setup + access to eth0, setup via ioctl()

Thanks for the feedback.
DS is using execInApp on-target tool to run the gdbserver. This tool launches a process in the application context, and this should be working whatever if the app is sandboxed or not, but it appears that this is not working when it is not.
This will be fixed in next Legato release.

Thank you Daav for the insight.

In the mean time I have managed to set up a native debugger in eclipse CDT as follows:

  • Step 1) Launch your application (to upload the binary)
  • Step 2) Debug using C/C++ Remote Application (See screenshots for setup)
  • Step 3) When the debugger breaks on main(), load the shared libraries by typing ‘shared’ in the gdb console

[*] Step 4) Happy debugging!

  • In main tab:
    GDB Debugger: /home/[USER]/legato/packages/legato.toolchain.1.7.2.fw_SWI9X15Y_07080200-wp85-native-x86_64-201602121108/resources/wp85/wrapper/arm-poky-linux-gnueabi-gdb
    GDB Command file: [empty]
  • In GdbServer Settings tab:
    keep defaults

Thanks for the workaround.
Please note that the issue was identified here, and the fix will be integrated in next Legato release.