RSSDK: Debugging in VB RobotStudio addin project
How to get the debugging events working in a VB.NET Visual Studio project
for RobotStudio addins
<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Prerequisite
To be able to make the project automatically copy your dll
into the correct RobotStudio folder you need to run Visual Studio as
Administrator. So to be able to take advantage of the instruction below you
need to be local administrator on your machine.
Then right click the Visual Studio link and select Run As
Administrator.
<?: prefix = v ns = "urn:schemas-microsoft-com:vml" />
If you are not running as administrator you will get a build
error when the copy fails.
If you do not have the correct privileges then you need to
manually copy the dll to the RobotStudio addins folder, but you can still have
the debug through the Start External Program.
Instruction
1.
Right click the project and select [Properties]
2.
In the [Debug] tab, make sure that the [Start
external program] is set to the correct version of RS
3.
In the [Compile] tab, click the [Build Events]
button
4.
In the [Post-build event command line] textbox
enter
XCopy /y "$(TargetPath)" "C:Program FilesCommon FilesABB
Industrial ITRobotics ITRobotStudioAddins"
5.
Set some breakpoints in your code.
6.
Start Debugging [F5]
It will start RobotStudio automatically ?_" load the addin - and
break at the breakpoints.
Developer Center
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 799 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings