Hi, is it possible to debug a C++ real-time application written with the new Visual Studio plug-in? I wrote the application with VS 2019 an inlcuded the library with the PLCnext Engineer. (Same application could be debugged with eclipse and works fine)
Hi Lars, Good question. I reckon that should be possible, using the information in this article from Microsoft (for example) to configure gdb similar to Eclipse: https://docs.microsoft.com/en-us/cpp/linux/deploy-run-and-debug-your-linux-project?view=vs-2019 I would be interested to know if you have success with this. Regards,
Martin.
I had no success. The information from Microsoft are not helpfull in that case. Additional it seems to me that the VS plug in only provides a configuration for Release and not for Debug.
Hi Lars, I will see if someone here can get remote debugging to work in Visual Studio. Re. Debug vs Release builds - by default my Visual Studio PLM project was set up with solution configuration = “Debug”, and the build resulted in a ~2.5 MB .so file in the project directory ..\\bin\\AXCF2152_20.6.1.30859\\Debug\\lib. Changing the solution configuration to “Release” resulted in a ~130 kB file in the directory ..\\bin\\AXCF2152_20.6.1.30859\\Release\\lib, so that seems to work OK. ~ Martin.
Yes you are right Build of Debug works.
Hi, is there now a solution or a description for debugging with visual studio available?
Hi Lars, we are using development internal the comercial extension https://visualgdb.com/ which might be also interesting for you. So far we do not have any public descirption how to configure or use VS with the Tool and PLCnext, but I’ve added it now to our backlog. Until the documentation (or manual) is available I can only redirect you to the existing Eclipse Tutorial. Take care, Frank