FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
04-26-2023 11:02 AM
Hello,
A SDK document “remote-debug-cpp” says, C++ applications running in the CtrlX CORE can be remotely debugged. I use this debug function with ctrlX CORE virtual according to the instructional steps of the document.After successfully setting up SSH key, the host system (Ubuntu - Application dev environment) can access the remote system (Ubuntu – ctrlX CORE virtual) with the SSH connection.
But, in VS Code when I click Termial --> Run Task… -->Launch Remote GDB Server, the terminal shows the message below: (password is required)
And when clicking run and debug button in the VS Code with option “x64 ctrlX virt. Network Adapter (remote)”, a error windows shows:
Does anyone know how to fix it?
some test info:
(
)
Solved! Go to Solution.
04-28-2023 11:00 AM
Hi HanwenFan,
I just tried it out myself and I was able to get it run. I followed the Remote Debugging C++ document you mentioned.
Maybe you should try to setup the ssh public key authentification first. I did it by performing the following steps:
ssh-keygen -t rsa
Then I followed the documentation to set get this running. Note: you got start the debugging several times to get it running. The only changes I had to make were in the task.json (l.110): here I had to change the name of the snap to sdk-cpp-registernode (see screenshot).
Best regards,
Nick
05-08-2023 09:45 AM
Hi, nickH
As you mentioned, the problem is that the snap name in the task.json should be changed to 'sdk-cpp-registernode'. After changing it, it works. Thanks!
By the way, can we remotely debug the rt snaps in this way?
05-08-2023 09:55 AM
Yes, this should be also possible for RT-Bundles. But we have currently no manual for this.
The R&D is currently looking at this and will provide something in the next release.
05-08-2023 10:00 AM
OK, I got it .😀