Tools > Options > Cross Platform > Connection Manage-> Add
彈出Connect to Remote System窗口
分別輸入Host name(遠(yuǎn)程主機ip)、 User namer(用戶名)、Password(密碼)、Port(默認(rèn)是ssh端口22) Authentication type(身份驗證方式默認(rèn)是password(密碼)或者 Private key file(個人密鑰))
在這里可以設(shè)置默認(rèn)遠(yuǎn)程連接在Default下面單選框擊中即可
實際連接 Debug -> Attach to Process頁面
Connection type:SSH
Connection target 菜單中選用戶命@ip,
Attach to:默認(rèn)是代碼類型,也可以選Native(GDB) code(調(diào)試c++)
在附加進(jìn)程即可
注意:如果選的gdb,遠(yuǎn)程系統(tǒng)必須安裝gdb
新建工程要選Linux平臺,然后在新建相應(yīng)工程,添加文件,在工程屬性中可以設(shè)置Remote Build Machine(遠(yuǎn)程連接)和Remote Root Directory(遠(yuǎn)程根目錄);也可以建個新工程,把遠(yuǎn)程文件下載到本地,修改同步到遠(yuǎn)程調(diào)試
gdbserver是使用在linux平臺上的調(diào)試工具(相當(dāng)于遠(yuǎn)程調(diào)試工具)