Debugging FlexPendant app in 5.15
I have both VS2008 and VS2010, but it's not entirely clear what the procedure is to debug an app written using FlexPendant SDK 5.15.
The release notes suggest that step-by-step instructions can be found on this forum but I couldn't see it - or, as seems to be quite common here, the links were dead.
If you could point me in the direction of some suitable documentation or post current links, I'd be grateful.
Thanks,
Derek.
0
Comments
-
Hi Derek,right now I'm debugging a problem reported on FlexPendant SDK, and I have a small test application that I debug using Visual Studio 2012.In VS 2008 I'm building the project.I have setup a post build step that copies the assemblies to my Virtual Controllers home directory after each buildLike this:copy "$(TargetPath)" "C:\Users\senisko\Documents\RobotStudio\Demo AW Station\Systems\SystemAW2\HOME"copy "$(TargetName).gtpu.dll" "C:\Users\senisko\Documents\RobotStudio\Demo AW Station\Systems\SystemAW2\HOME"In RobotStudio I start the Virtual FlexPendantIn VS2012 I'm selecting the function Tools >> Attach to process >> Virtual FlexPendant.exeIf the app crashes it will break into the VS2012 debugger, and I can step and watch variables.I can also set breakpoints from VS2012.I have to double check the release notes, and what happened to the step by step description.Hope this helps you in the meantime.PS. VS2010 or VS2012 should be identical from this perspective.1
-
BTW, here is another hint.In RobotStudio I can right click in the controller node in the Controller Browser and select "Open system folder" to easily get the path to the VCs home directory that is used in the post build step.0
-
Thanks Niklas, that's very helpful - I'll try that out.
Thanks,
Derek
Post edited by John Wiberg on0 -
Hi
Beter late than never but this might help other people struggling to debug FlexPendant app in 5.15:
Use Visual Studio 2010 and higher, there is actually a documented compatibility issue related to VisualStudio 2008 being unable to able attach to and debug a .NET 4.0 application. VirtualFlexPendant.exe distributed with RobotStudio 5.15 and later are built with .NET 4.0.
See:
"Release Notes FlexPendant SDK 6.11"
Regards
Jacques
0
Categories
- All Categories
- 5.5K RobotStudio
- 395 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings