Good morning, i wanted to use the debugger for a project. I started to watch the tutorial video provided for the configuration and usage. I got stuck early in the tutorial as i can’t build the project when “Debug all targets” or “Debug AXC…” is selected. I have attached a screenshot with the error message. If I use the release option instead of debug the project builds and deploys just fine. I am using Eclipse 2019-12 and the 2020.0 version of the SDK. The project I am trying to debug is the CppDataTypeTest from your github repo. Best regards, Simon Schackmann
Hi Simon, This is a bug in the PLCnext Eclipse add-in. It should include the option “-b Debug” in the deploy step, when you change the configuration to Debug. To work around this problem, you can add this option yourself from the Project Properties window - shown below. Hope this helps. ~ Martin.
Hello Martin, this solved the issue, thank you very much. Best regards Simon Schackmann
This works for me, but when Debuging, i get this error, when In the Select Preferred Launcher dialog box,
choose GDB (DSF) Manual Remote Debugging Launcher: Could not determine GDB version using command: C:\\PLCnext\\Win64\\2020.0\\sysroots\\x86_64-pokysdk-mingw32\\usr\\bin\\arm-pxc-linux-gnueabi\\arm-pxc-linux-gnueabi-gdb.exe --version If i choose Automatic Remote Debugging Launcher y get this log (Spanish): e[?25l
e[2Ke[0m
e[1Ge[?25he[?25l
e[2KMicrosoft Windows [Versión 10.0.18362.836]
e[2K
e[1Ge[?25he]0;Administrador: ae[?25l
e[2K(c) 2019 Microsoft Corporation. Todos los derechos reservados.
e[2K
e[2KC:\\Program Files\\eclipse_photon>192.168.255.002 :2345 /C:/PLCnext/Win64/2020.0/
e[2Ksysroots/cortexa9t2hf-neon-pxc-linux-gnueabi/usr/bin/Arp.System.Application;exit
e[2K
e[2K"192.168.255.002" no se reconoce como un comando interno o externo,
e[2Kprograma o archivo por lotes ejecutable.
e[2K
e[2KC:\\Program Files\\eclipse_photon>
e[33Ge[?25h e[2K"192.168.255.002" no se reconoce como un comando interno o externo->this means that IP isnt recognised as command. Any ideas?
Hello, I try to run arm-pxc-linux-gnueabi-gdb.exe from his folder and i get and error that “libwinpthread-1.dll” was missing, i copy it from bin folder, to arm-pxc-linux-gnueabi, and its works. But in eclipse y get a new error:
192.168.255.2:2345: A connection cannot be established since the target computer has expressly denied such a connection.
Hello, Can you please confirm that you executed the gdbserver --attach command on the PLC? Please note that the pid of Arp.System.Application changes every time the PLCnext runtime restarts, so this command must be executed with a different pid every time. ~ Martin.
Thank you Martin, i do it two times before post, and didn’t work. Now attaching and running works…