PLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. pynl02
  2. PLCnext Technology & PLCnext Controls
  3. Thursday, 10 September 2020

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)

 

 

 

Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

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.

 

Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support

pynl02 Accepted Answer Pending Moderation
0
Votes
Undo

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.

 

Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

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.

Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support

pynl02 Accepted Answer Pending Moderation
0
Votes
Undo

Yes you are right Build of Debug works.

  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.