Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

How to debug post processors

#1
Greetings!

We are creating a custom post procesor for a Fanuc robot that, basically, processes custom lines as we please, and we were wondering if we could debug that custom post proccesor code (instead of using the good ol' run and search for issues).

Thanks beforehand!!
#2
Yes, you can debug your post processor for development purposes. We recommend opening the post processor and other required files (if any) using VSCodium which is included with RoboDK (Select Tools-Open Text Editor) or VSCode.

One option is to use a test_post function inside your post processor like the one in this example:
https://robodk.com/doc/en/PythonAPI/post...or-example

Another option is to debug a program you created in RoboDK for your robot. On Windows, the preprocessed program files are saved as intermediate Ptyhon files in your temporary folder (for example: C:/Users/username/AppData/Local/Temp folder, or simply type %TEMP% in your Windows file explorer). You can debug this file in VSCode to debug your post processor.

You can find more information here:
https://robodk.com/doc/en/Post-Processor...efPostProc
#3
Hi!

Thank you so much for the quick answer!!

The real deal is the temp file. That way is not like properly debugging the post processor while in RoboDK, but I can add them to a main() function in VSCode and debug it.

Thanks!!! :)
#4
Great, thank you for letting us know!
  




Users browsing this thread:
1 Guest(s)