gdbtizentizen-studio

Tizen Studio Debugger Message: Cannot launch application with GDBClient


I am working on a Hybrid App (Web UI with Native Service) of API version 4.0 for my Gear S3 Frontier. After successful compilation of the App, In order to track the cause of application crash, when I launch it on emulator W-4.0-circle-x86-preview in debug mode, it gives an error message.

Error Message:

Cannot launch application with GDBClient.

Error in final launch sequence

Failed to execute MI command:

source G:\Computer Science\App Development\MyApp\GalaxyWatchApp\MyApp\Native Service\Debug\.gdbcommand

Error message from debugger back end:

G:\Computer Science\App Development\MyApp\GalaxyWatchApp\MyApp\Native Service\Debug\.gdbcommand:5: Error in sourced command file:\nG:Computer ScienceApp DevelopmentMyAppGalaxyWatchAppMyAppNative ServiceDebugMyAppservice: No such file or directory.
G:\Computer Science\App Development\MyApp\GalaxyWatchApp\MyApp\Native Service\Debug\.gdbcommand:5: Error in sourced command file:\nG:Computer ScienceApp DevelopmentMyAppGalaxyWatchAppMyAppNative ServiceDebugMyAppservice: No such file or directory.

GDBCommand File Contents:

set sysroot C:\Tizen\TizenStudio\tizen-studio\platforms\tizen-4.0\wearable\rootstraps\wearable-4.0-emulator.core
set debug-file-directory C:\Tizen\TizenStudio\tizen-studio\platforms\tizen-4.0\wearable\rootstraps\wearable-4.0-emulator.core\usr\lib\debug
set solib-search-path G:\Computer Science\App Development\MyApp\GalaxyWatchApp\MyApp\Native Service\Debug
dir C:\Tizen\TizenStudio\tizen-studio\platforms\tizen-4.0\wearable\rootstraps\wearable-4.0-emulator.core\usr\src\debug
file "G:\Computer Science\App Development\MyApp\GalaxyWatchApp\MyApp\Native Service\Debug\MyAppservice"
sharedlibrary

During the web search I found some of the GDBClient errors but couldn't find the solution to this one.

I've also tried setting the path of GDB Debugger to i386-linux-gnueabi-gdb-7.8 and GDB Command File to the absolute path of .gdbcommand which should be run.


Solution

  • It seems like the problem lies with this line: file "G:\Computer Science\App Development\MyApp\GalaxyWatchApp\MyApp\Native Service\Debug\MyAppservice"

    Try to remove spaces from the directory name. Change Computer Science to something like Computer_Science and App_Development to App_Development. Then right-click on your project and go to Debug As -> Debug Configurations..., then delete the active debug configuration and again create new one.

    You may also try by removing the whole line file "G:\Computer Science\App Development\MyApp\GalaxyWatchApp\MyApp\Native Service\Debug\MyAppservice" from the .gdbcommand file manually and check if it fixes the issue.