1

我正在我的Gear S3 Frontier. 成功编译应用程序后,为了跟踪应用程序崩溃的原因,当我以调试模式在模拟器 W-4.0-circle-x86-preview上启动它时,它会给出错误消息。

错误信息:

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 文件内容:

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

在网络搜索过程中,我发现了一些GDBClient错误,但找不到解决这个问题的方法。

我还尝试将路径设置为GDB Debugger应该运行的 .gdbcommand的绝对i386-linux-gnueabi-gdb-7.8路径和路径。GDB Command File

4

1 回答 1

2

似乎问题在于这一行: file "G:\Computer Science\App Development\MyApp\GalaxyWatchApp\MyApp\Native Service\Debug\MyAppservice"

尝试从目录名称中删除空格。更改为和之类的Computer Science东西。然后右键单击您的项目并转到-> ,然后删除活动的调试配置并再次创建新的。Computer_ScienceApp_DevelopmentApp_DevelopmentDebug AsDebug Configurations...

您也可以尝试手动file "G:\Computer Science\App Development\MyApp\GalaxyWatchApp\MyApp\Native Service\Debug\MyAppservice"从文件中删除整行并检查它是否解决了问题。.gdbcommand

于 2019-10-03T10:14:00.403 回答