Post-Processor Debugging¶
While developing a VcPost file for a machine/control combination, it can be helpful to step through a test NC program with the post-processor and watch the effect that each input line has on the numbers, strings and registers. To see a dialog window, you need to insert a simple post-processor language statement into your code.
Debug title_string
The title_string is optional, and if present will be used in the title bar of the window.
You could have just one "Debug" statement outside all the subroutines in the VcPost file. Then the window would appear as soon you start processing the input NC program. As you step through the NC program, you can refresh the content of the Debug window at any time, just by clicking on its
icon.
Alternatively you can place "Debug" statements in several places, with different titles, and a window will be added to the display each time the post-processor reaches such a statement. Putting a "Debug" statement inside a loop would not be a good idea. You can close any of the Debug windows by clicking on its
icon.
A
icon within the register table indicates that a particular property has no defined value.