MCAMX6 PostDebuggerUG NoRestriction
MCAMX6 PostDebuggerUG NoRestriction
MCAMX6 PostDebuggerUG NoRestriction
Post
NCI
Watches
Messages...
History
Post window. Lists the contents of the .PST file. The current line is bold. Learn more...
NCI window. Lists the contents of the .NCI file. The current line is bold. Learn more...
Messages/ Error log window. Watches . Lists all variables in the watch list; their raw, unformatted values; and their prv_ values. Learn more... Shows errors and other messages from the .ERR file. Learn more...
NC
Lists
Lists window. NC window. Previews your NC output, along with the NCI line and postblocks associated with each line. Learn more... Lists all variables, strings, and postblocks. Learn more...
How do I?
FAQ
Why is it so slow?
You might be running in Run Step mode. Try regular Run mode or Run Turbo. Learn more...
I just want to step through a section of my post, not the whole thing. How do I do that?
Set a breakpoint before the section you want to step through. Run the post. When you hit the breakpoint, use one of the Step commands. Learn more...
All my toolbar buttons are grayed out and nothings workingwhat do I do now?
Your post has finished running. Return to Mastercam and re-post your part to continue the debugger session. Learn more...
I re-posted my part but the debugger isnt appearing. Mastercam looks like its stuck.
Click the debugger icon in the Taskbar on your desktop or click on the debugger window itself.
Set a breakpoint?
Move the cursor at the beginning of a postline or NCI line and press F9. Learn more...
I want to search for some text but the Find button is grayed out.
Find only works when youre in the Post window.
I can see the debugger button in Mastercam, but its grayed out.
Select the NC file option:
11
12 13 14 15 16 17 18
Information may have been changed and/or added since this document was published. The latest version of this document is installed with Mastercam or can be obtained from your local Mastercam Reseller.
19 110
Mastercam X6 Post Debugger Users Guide Date: November 2011 Copyright 2011 CNC Software, Inc. All rights reserved. Software: Mastercam X6
TERMS OF USE
Use of this document is subject to the Mastercam End User License Agreement. A copy of the Mastercam End User License Agreement is included with the Mastercam product package of which this document is part. The Mastercam End User License Agreement can also be found at:
www.mastercam.com/legal/licenseagreement/
/ ix
Contents
1. Using the Post Debugger.................................................. 1
Enabling the debugger.......................................................... 2 Launching the debugger ...................................................... 4 Customizing the screen display .......................................... 6 Running the post................................................................... 7
Understanding the different run options........................... 8 What happens when the post is finished running? ............ 9
Editing your post ................................................................. 24 Making the debugger work like legacy debug variables .............................................................................. 25
fastmode$ ......................................................................... 25 The bug2$ switch.............................................................. 26 The bug4$ switch.............................................................. 27 Other debug switches ....................................................... 28
3. Reference ............................................................................... 43
Customizing the NC window ....................................... 52 Message/Error Log window.............................................. 54 Watches window............................................................... 55 History window................................................................. 57 Lists window ..................................................................... 58
chapter 1
Enabling the debugger . . . . . . . . . . . . . . . . . . . page 2 Launching the debugger . . . . . . . . . . . . . . . . . page 4 Customizing the screen display . . . . . . . . . . . page 6 Running the post . . . . . . . . . . . . . . . . . . . . . . . . page 7 Tracing through a post . . . . . . . . . . . . . . . . . .page 11 Using breakpoints . . . . . . . . . . . . . . . . . . . . . .page 15 Watching variables . . . . . . . . . . . . . . . . . . . . .page 18
How do I...?
Enabling the debugger
1 On your Windows Start menu, choose All Programs.
Applet.
your system, find the Apply changes to this version option and select Mastercam X5.
Once the debugger is enabled, you will see its button in the Post processing dialog box:
How do I...?
Launching the debugger
1 Select the operations that you want to post. 2 Click the Post button.
4 Choose which Edit options you want. These will cause your
default editor to automatically open when the debugger session is finished. Note that the Edit options (or the NCI file option) do not affect the debugger itself. You will always be able to see NC output and the NCI file in the debugger even if no Edit options are selected. Select them only if you want the Editor to open in addition to the debugger.
Best practiceUnless you really want to see the NCI or NC file in your editor, leave the Edit options unchecked.This will greatly simplify the interaction between Mastercam and the debugger.
5 Click the debugger button. Quick Start
NOTE: If you dont see this button, the debugger has not been enabled. See Enabling the debugger on page 2.
6 Select the names of the NC and/or NCI files, if prompted.
The debugger will open automatically. IMPORTANT: If a debugger session is already openin other words, if you have been using the debugger and you are simply re-postingMastercam might look like it has locked up. All you need to do, though, is click on the title bar of the debugger window to make it active.
How do I...?
Changing the font size
1 Select Configuration from the menu. 2 Choose Select font. 3 Select the desired font size.
If you wish, you can also change the font, style, and other attributes. Best practiceDont select a Bold font. The debugger uses bold to highlight the current NCI and post lineif you choose bold for everything, you wont be able to see this.
How do I...?
Showing or hiding windows
Learn more about each window see Debugger windows on page 44.
1 Use the View menu to select which windows will be visible. 2 Drag and resize them as desired, or use the Window menu to
automatically position them. Best practiceIf you need to conserve screen space, the Lists, History, and Messages windows are less important and can typically be turned off while you are running the post. You can always turn them on and inspect them after the post has run. You can also customize the information that gets displayed in the NC window. See Customizing the NC window on page 52.
To pause the post while it is running, do either of these two things: Click the Pause button: Set a breakpoint. Often while the post is running, it is difficult to stop it exactly where you want with the pause button. Setting breakpoints gives you a lot more control. Once the post is paused, you can either choose to step (or trace) through it. This lets you run one line at a time so you can see what is happening in great detail.
When the post finishes, you can use your editor to make changes to the post, and/or return to Mastercam to make changes to your part and re-post.
If your post reads operation parameters, avoid Run Step mode. The parameter read loops can take a long time. You can mix-and-match run modes. In other words, you can start in one mode, pause, and resume in a different mode. So, for example, you can run in normal mode until your post is finished with parameter reads; then you can pause it (or set a breakpoint) and resume in Run Step mode to see watch list variables. Consider first running in Turbo mode to quickly see the NC output and look for problem areas. This will let you identify areas where you want to set breakpoints or identify variables to add to the watch list. Then return to Mastercam and repost. Turbo mode will not stop for breakpoints. In Run (normal) mode, you can see watch list values only when the debugger is paused. You will not see them update while it is running.
See Making the debugger work like legacy debug variables on page 25 for more information about running the debugger.
The debugger finishes processing the NCI file and the last postblock has been executed. You click the Stop button.
Once the debugger finishes processing, control passes back to MP .
Quick Start
If either of the Edit buttons was selected when you launched the debugger:
your default editor will automatically start. The debugger window will still be open in the background. You can return to it and review the output in the different windows.
If no Edit options were selected, the debugger window remains open, but the toolbar buttons will be grayed out.
You can now do one of two things: Quit the debuggerSelect File > Quit from the menu, or simply click on the Mastercam or Editor window. This leaves the debugger session active. You can edit your PST file with the Editor, make changes to your part in Mastercamor boththen re-post your part.
When you return to the debugger, your output will appear in a new NC tab:
Quick Start
As each instruction executes, you see the resulting output (if any). You can more easily verify the posts logic. You can see exactly when variable values change in the watch list.
There are a number of different ways to trace through a post. The following procedures describe some common techniques. Best practiceTypically, to set up a trace, you will set a breakpoint before running the post to automatically pause the post at the proper spot. If you are not using breakpoints, remember to click the Pause button, not the Stop button. If you click Stop, the debugger session will end.
TIP: Tracing is especially effective when Expanded NC output is turned on. See What is Expanded NC output ? on page 52 to learn more.
How do I...?
Tracing with Step Into
The debuggers Step Into command lets you watch the post execute one line at a time. Each time you click Step Into, the debugger executes a line and updates the windows to show the results. The debugger then waits for you to issue another command.
1 Start the debugger. The Post window displays your PST file.
Quick Start
The debugger moves to the first code line inside of the current post block.
If the current line is an instruction, the debugger executes the instruction and moves to the next line, as shown in the following figure.
If the current line calls a post block or function, the debugger jumps to that post block or function.
Quick Start
4 Keep pressing Step Into to trace deeper and deeper into the
post, watching to see that the instructions execute in the order that you expect.
How do I...?
Tracing with Run Step
See Understanding the different run options on page 8 to learn more about the run modes.
The Run Step command lets you watch post processing as it happens, without your having to continually click a button.
1 Start the debugger. 2 Select Run Step from the Debug menu. The debugger starts
3 Watch the NCI window to see the current line the post is
processing.
Quick Start
Using breakpoints
Often, you dont want to debug an entire post from the beginning. More likely, you want to trace from a specific location in your post. Breakpoints make this type of debugging possible.
Quick Start
How do I...?
Tracing with breakpoints
1 Start the debugger. 2 Select Run Turbo from the Debug menu to quickly run
through the entire post and populate the debuggers windows with output. NOTE: Select Run, not Run Turbo, if you want to see expanded NC output.
3 In the NC window, locate the instruction where you want to
start debugging.
Quick Start
Breakpoint from the pop-up menu. A small double-arrow appears next to the selected line.
6 Choose File > Quit to stop the debugging session, but leave
7 Go back to Mastercam and re-start the debugger session. a Make sure the same operations are selected. b Click the Post button. c Click the debugger button. d Click on the debugger window to activate it. 8 Click the Run button. Quick Start
The debugger processes the post until it gets to the breakpoint you set. It will pause and waits for your command. NOTE: Run Turbo mode does not stop for breakpoints.
9 Click the Step Into button to start tracing from the breakpoint. (See Tracing through a post on page 11 to learn
more.)
How do I...?
Clearing breakpoints
1 To clear a single breakpoint, click anywhere in the line with
Watching variables
Often, a wrong variable value is the cause of a post problem, so an important part of debugging is watching to see how and where post variable values change. Use the Watches window to monitor variable values. When you add a variable to this window, you can step through a post and see the variables value at any point in the posting process.
Quick Start
You can see the values updating when you are stepping through the post or running in Run Step mode. If you are in normal Run mode, you will not see the values update in real time, but they will update when the post pauses at breakpoints.
TIP: You can watch both numeric variables and strings.
How do I...?
Watching a variable by selecting it from the Post window
1 Start the debugger.
2 If you do not see the Watches window, choose View > Watch
watch.
Quick Start
TIP: If it is a pre-defined variable, make sure you select the $ following the name.
5 Right-click and select Add Watch from the pop-up menu.
Quick Start
How do I...?
Directly adding a variable to the watch list
1 Right-click anywhere in the Post window and select Add
How do I...?
Clearing the watch list
1 Click the Clear button in the Watches toolbar.
How do I...?
Creating a watch list
1 Click the Save button in the Watches toolbar. 2 When prompted, enter the name of the file.
NOTE: Do not try to change the folder. The debugger will only look in the default folder when loading watch list files.
How do I...?
Laoding a watch list
1 Click the Watch set button in the Watches toolbar.
The debugger automatically displays all of the watch list files in the default folder. There is no option to browse for a different folder.
Quick Start
To add new variables to a file, all you need to do is simply enclose the variable name between <string> ... </string> tags. As long as the file has the proper extension and is saved in the proper location, the debugger will automatically recognize it and add it to the Set watch list.
chapter 2
Editing your post . . . . . . . . . . . . . . . . . . . . . . .page 24 Making the debugger work like legacy debug variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .page 25
In addition, there is a complete tutorial example:
How do I...?
Making changes to your post while using the debugger
1 Start the debugger. 2 Run your post, and see the contents of the different output
windows.
3 Start your editor and load the PST file. 4 Use the debugger tools to identify where in the PST file you
debugger again. Now when you run the post, you will see the effect of your changes. The debugger will create a new tab in the NC window for the output from the updated post. This lets you easily compare the two and identify how your changes affected the NC output.
EDITING AND DEBUGGING POSTS / Making the debugger work like legacy debug variables 25
This section discusses some of the legacy debugging tools that MP supported before the debugger was released, and how they relate to the debugger. If you are used to debugging your posts with the traditional debug variables, this section will tell you how to reproduce that same functionality with the debugger. This section also explains what uses, if any, the traditional debug variables still have and how they should be set. If you are not familiar with editing posts in Mastercam X2 and earlier, you do not need to read this section.
fastmode$
The fastmode$ variable was the traditional way to turn on debugging. Setting fastmode$ = 0 (or no$) enabled the other bug switches. Starting with Mastercam X, it was toggled with a control definition setting:
This setting was taken out in Mastercam X3. fastmode$ is now automatically initialized to yes$ and you do not need to include it in your PST files. NOTE: fastmode$ can still be used to enable scaling. If you manually set it to no$, it enables scaling via scalex$, scaley$, and scalez$. The debug output that you got with fastmode$ depended on the state of the other debug switches. The next section tells you how to reproduce these results with the debugger.
When fastmode$ = 0 and bug2$ was set to a positive value, each line of NC file included the name of the postblock that output the line. If the line of NC code was output by more than one postblock, the NC file contained the names of the first and last postblocks that wrote to that line. If bug2$ was set to a negative value, displayed all the postblock labels that have been called in the post, even those that do not result in output.
The bug2$ switch no longer has any function and can be removed from your post. The debugger lets you mimic its features in the following ways:
Quick Start
To simply see the first output postblock for each line with the fastest possible output, choose Run Turbo from the Debug menu. To see all the output postblocks for each line, follow these steps:
a Turn on Expanded NC output. b Choose Run from the Debug menu.
To see all the postblocks that are executed, whether or not they produce output, follow these steps:
a Choose Run Step from the Debug menu.
listed there.
EDITING AND DEBUGGING POSTS / Making the debugger work like legacy debug variables 27
However, bug4$ is still useful when you want to output raw, unformatted variable values with the ~ (tilde) operator.
When bug4$ = 1, the ~ operator is active. The ~ operator will force raw, unformatted output. When bug4$ = 0 or 1, the ~ operator will force output, but the output will be formatted according to the applicable format statement.
You need to use your editor to set bug4$ and manually add the ~ in front of the desired variables. Note, however, that the debugger can often give you the same information more easily. Just add the desired variable to a watch list; the watch list window always shows all values unformatted. This way, you do not need to constantly keep making changes to your post.
Quick Start
This section walks you through an example of how you might use the debugger to perform a real-world debugging task. In this example, you will look at the toolpaths for the part shown here:
There are two simple toolpathsa contour toolpath and a pocket toolpathusing two different tools. In this example, you will look at the G43 codes for each toolpath and figure out how they are output:
what postblocks and postlines output the codes what variables are used to store the values what NCI lines are current when the G43 is processed
Once you learn this information, you will know where in your post to make changes if you need to modify the output.
Example
Example 1: Starting the debugger
Quick Start 1 Select the operations and
See Enabling the debugger on page 2 if you do not see this button.
click OK.
See Customizing the screen display on page 6.
4 If necessary, take a few moments and arrange your windows
in a useful layout.
EDITING AND DEBUGGING POSTS / Tutorial example: Finding out where a value comes from 31
Example
Example 2: Previewing the NC output
When the debugger first starts, your PST file is loaded in the Post window. The first postblock that will be executedtypically, pprep$will be highlighted. The NCI window is populated with your entire NCI file.
Quick Start
Mastercam runs the post in Turbo mode and quickly populates just the NC window with output
2 Go to the NC window and find the G43.
When you find the line, you can see that is was output by the psof$ postblock, and that line 97 was the current NCI line.
G43. When you find the line, you can see that the G43 for the second operation was output by the ptlchg$ postblock.
Quick Start
EDITING AND DEBUGGING POSTS / Tutorial example: Finding out where a value comes from 33
Example
Example 3: Setting breakpoints and watching variables
Once you know where the output is coming from, set breakpoints just before those locations, so you can study the output in detail. Once you see the output postlines, you can figure out which variables are holding the values, so you can add them to the watch list.
1 Go back to the first G43 line in the NC window and double-
Quick Start
click it. Mastercam sets the Post window to the output postline in psof$ and NCI window to line 97.
By comparing the postline with the NC output, you can guess that sg43 is the string that holds the G43, and tlngno$ is the variable that holds the offset number.
NOTE: Make sure that you select the $ following the variable name. Make sure that you do not select the * operator in front of the name.
output postline and press F9. Mastercam adds a breakpoint as shown here.
EDITING AND DEBUGGING POSTS / Tutorial example: Finding out where a value comes from 35
click it. Mastercam sets the Post window to the output postline in ptlchg$.
Quick Start
You can see that the output postline uses the same variables as the one in psof$, so you do not need to add any new variables to the watch list.
Example
Example 4: Returning to Mastercam and reposting the part
To use the breakpoints and watch list, you need to return to Mastercam and repost the toolpaths. The debugger will preserve the work that you did in this session.
Quick Start
to return to Mastercam.
debugger.
4 Confirm the NC file name when prompted.
EDITING AND DEBUGGING POSTS / Tutorial example: Finding out where a value comes from 37
this screen:
Quick Start
but click the Debugger icon in the Task bar or just click in the debugger windowto activate it.
Notice that there is now a second tab in the NC window. Each time you repost, Mastercam adds a new tab to this window so you can compare the NC output from each session.
Quick Start
The debugger runs until it reaches the first breakpoint, then pauses.
Example
Example 5: Tracing through the post and analyzing the debugger output
In the final example, you will step through sections of interest and look at the post logic and output in detail. Typically, the step and trace functions are used to look at only small sections of the post that you have identified after running once in Turbo mode. While the debugger is paused at the first breakpoint, take a moment and look at the state of the output windows.
1 You can see that the Post window indicates where processing
was paused. The NCI window shows what line was being processed at that point.
EDITING AND DEBUGGING POSTS / Tutorial example: Finding out where a value comes from 39
current value of the variables that we are monitoring. Variables whose values are different from their prv_ values will appear in bold. Typcally, this is because their values have been set, but they have not yet been output. In this case, the prv_ value of tlngno$ is the last value read during the NCI pre-read.
Quick Start
3 The NC window shows the output for each line broken out by
Complete output lines are indicated by -> symbols. This feature is triggered by the Show expanded NC output option. You will not see this, however, in Run Turbo mode.
As output instructions are executed, you can see the current output line being built, element by element, in the Current Output field in the NC window.
Quick Start
use the Step Statement button on the toolbar to execute each postline one statement at a time.
EDITING AND DEBUGGING POSTS / Tutorial example: Finding out where a value comes from 41
the prv_ values in the Watches window update, and the entries are no longer bold.
Quick Start
finished executing, select Run from the Debug menu to run to the next breakpoint.
Open the PST file in an editor to make changes, save them, and repost. Hopefully you now know where in your post to make changes if you want to alter the processing related to the G43 output. Mastercam will maintain the debugger state and watch list. When you return to the debugger, there will be a third tab in the NC window. Go back to Mastercam to edit the part and repost. Select File > Exit to close the debugger and end the session.
Quick Start
chapter 3
Reference
This chapter provides a reference to all the debugger interface elements:
Debugger windows . . . . . . . . . . . . . . . . . . . . .page 44 Menu commands . . . . . . . . . . . . . . . . . . . . . . .page 59 Toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .page 62 Keyboard shortcuts . . . . . . . . . . . . . . . . . . . . .page 63
Debugger windows
The Post Debugger displays information in seven windows:
Post window . . . . . . . . . . . . . . . . . . . . . . . . . . page 45 NCI window . . . . . . . . . . . . . . . . . . . . . . . . . . . page 48 NC window. . . . . . . . . . . . . . . . . . . . . . . . . . . . page 49 Message/Error Log window . . . . . . . . . . . . . page 54 Watches window . . . . . . . . . . . . . . . . . . . . . . . page 55 History window . . . . . . . . . . . . . . . . . . . . . . . . page 57 Lists window . . . . . . . . . . . . . . . . . . . . . . . . . . page 58
See Customizing the screen display on page 6 to learn about showing/ hiding windows.
Quick Start
You can choose to show or hide any of these. Read the following sections to learn more about them.
Post window
See Editing your post on page 24 to learn how to make changes to your PST file.
The Post window displays the currently active post (PST) file. As the NCI lines are processed in succession, the currently active post line appears in bold.
Quick Start
The status area at the bottom of the window displays the line number and column position of the active line. These are keyed to the NC window and History window:
The Find (Ctrl + F) and Find Next functions are available, so you can search for text. A right-click menu lets you add variables to the watch list or set breakpoints.
Quick Start
Quick Start
NCI window
The NCI window displays the ASCII NCI data for your part file. This data is always generated and displayed in this window, even if you do not have the NCI file > Edit option selected when you post the toolpaths. The current line is bolded.
Quick Start
The status area at the bottom of the window displays the line number of the current line. (Each line in each two-line pair is numbered individually.) This is keyed to the NC window as shown below:
Double-click the NCI line in the NC window and the NCI window will jump to that line. The breakpoint function is available in the NCI window, so you can set breakpoints and pause debugger execution at any NCI line you choose.
NC window
The NC window displays the NC code the post is generating, along with other information such as the NC line number and the number of the NCI code line that produced the output.
Quick Start
The code that you see in the window is being generated by the debugger for display/debugging purposes, but it is not actually being written to the NC file. The NC file will not be written until the debugger session ends and control is handed back to MP . IMPORTANT: There are instances where the code written to the NC file is different than the code that appears in the NC window. The most common example is canned cycles, where the debugger window often displays more information than is actually written to the file. You can choose to display up to seven columns of information: LineThe number of the line in the NC window Machine TypeThis is for future use. It is hidden by default. StreamThis displays the stream in which the line was output. For most applications, this is simply the name of the NC file.
If your PST file is outputting to multiple files, you can see that information here. For example, this Agievision post writes its NC output to several different files: SBL, ISO, and more. The debugger clearly identifies where each piece of data is written:
Quick Start
Unless you are using buffers or outputting to multiple files, you can typically hide this column. NCI LineThe number of the last NC line that the post processor read. This is not necessarily the NCI line that produced the output. Its just the most recent line that the debugger read from the NCI file. NC OutputWhat has been generated by your output postblocks typically, to be written to your NC file. With Expanded NC Output turned on, each buffered item will be listed on its own line as it is output. When the buffer is cleared and the line is finally written to the
file, you will see the complete line preceded by a -> symbol, as shown in the following picture.
Quick Start
Post BlockThe post block (including the line and column number in the post file) that produced the NC output. TraceThe post blocks that generated the NC output (top-level post blocks only). Double-click on a NCI line number or postblock name to jump there.
Best practiceFor most applications, the column layout shown above will work fine. For most applications, the Trace and Machine Type options are not useful. Once you decide which columns to display, you can:
Resize columns by dragging the column boundaries. Re-order columns by dragging-and-dropping them.
Quick Start
output turned off. Now the window displays only complete NC lines.
Figure 3-2: Without expanded NC output
NOTE: This window typically mirrors the contents of the .ERR file.
Watches window
See Watching variables on page 18 to learn more about adding variables to the watch list.
The Watches window lists all the variables that you have added to the watch list, together with their prv_ variables.
Quick Start
Variables whose values are different from their prv_ values are shown in bold. Typically, these values will be displayed unformatted. Once the variable has been output, the prv_ value is updated so that the two values are equivalent. The values will be shown unbolded, and will reflect the format statement with which it was output.
To clear the watch list, click the Clear button on the toolbar:
To delete single variables, click the Delete button at the end of each line. You might need to make the window wider to see it:
Quick Start
The debugger also lets you save the watch list to a file. Use the Watches toolbar buttons to save the watch list to a file, or load previously save sets. See Saving and loading watch lists on page 21 and Working with watch list files on page 22 to learn more.
History window
The History window lists all the postblocks that have been executed in the current debugging session.
Quick Start
Each line in the History window includes the current NCI line number at the time the postblock was executed, as well as the line number of the postblock in the PST file. Double-click on either to jump there in the NCI or Post window. NOTE: The History window is only populated when you use Run Step mode.
Lists window
The Lists window lists all of the postblocks, strings, and numeric variables in the current PST file.
Quick Start
Typically you do not need to display this window while the post is running. You can toggle it on anytime if you want to look at it.
Menu commands
This table lists all of the debugger commands. Table 1: File menu
Command Description Shortcut Quick Start
See What happens when the post is finished running? on page 9 for more information.
Quit
Exit
Terminates the current session, but leaves the debugger open. Use this command when you want to return to Mastercam and re-post. This option will preserve your watch list and breakpoints, and create a new tab for the next run of NC output so you can compare the results of each session. Terminates the current session, and closes the debugger.
Searches for occurrences of a given text string Searches for the next occurrence of the previously searched text string
Ctrl+F F3
See Understanding the different run options on page 8 for more information.
Run Turbo
Pause
Runs quickly through the post. Steps through the post more slowly than the Run command, but shows the most information. Runs through the post at the fastest possible speed, but without updating the History window. Expanded NC output is not available. Pauses the debuggers processing.
F5
F12
Stop
Stops the debuggers processing. Ends the debugger session. You can return to Mastercam.
Shift+F5
Quick Start
Transfers control to editor. The NC file only shows output to stop point. Must re-post from inside Mastercam to resume debugging. Executes all of the commands that F10 are part of the highlighted post block, or if not on a post block, executes the current line. Enters the currently highlighted F11 post block, or if not on a post block, executes the current line. This is more detailed than Step Ctrl+F11 Into. It moves forward through the post one statement at a time. You can see individual elements of each postline executed, element by element. Adds or removes a breakpoint from F9 the currently selected line. Adds the currently highlighted Ctrl+W variable to the Watches window. Removes all breakpoints from the Ctrl+Shift+F9 debugger windows.
Step Over
Step Into
Step Statement
Configuration
Shows or hides the History window. Shows or hides the Lists window. Shows or hides the Post window. Shows or hides the NCI window. Shows or hides the NC window. Shows or hides the Message/Error Log window.
Arranges the Post, NCI, NC, and Message/Error Log windows so that they diagonally overlap. Horizontal Arranges the Post, NCI, NC, and Message/Error Log windows horizontally in a grid. Vertical Arranges the Post, NCI, NC, and Message/Error Log windows in a vertical stack. [Window List] Brings the selected window to the foreground. Cascade . Table 7: Help menu
Command Description Shortcut
User Guide Displays this document About Tells you about the current version Mastercam of the debugger. Post Debugger
Toolbar
The toolbar lets you quickly access the most frequently used menu commands. When all the toolbar buttons are grayed out, that means the debugger has either finished processing or has been stopped. The only way to resume processing is to go back to Mastercam and re-post.
Quick Start
Runs quickly through the post. Pauses the debuggers processing. Stops the debuggers processing. Executes all of the commands that are part of the highlighted post block, or if not on a post block, executes the current line. Enters the currently highlighted post block, or executes the current line. Moves forward through the post one statement at a time. Individual postlines are executed one element at a time. This is the most detailed step mode. Adds or removes a breakpoint from the currently selected line. Adds the currently highlighted variable to the Watches window. Searches for occurrences of a given text string. Searches for the next occurrence of the previously searched text string.
Keyboard shortcuts
For many of the debuggers commands, you can use the keyboard shortcuts shown here. Table 9: Keyboard shortcuts
Command Keystroke Quick Start
Add watch Pause Run Find Find next Select all Step into Step over Step statement Stop Toggle breakpoint Clear all breakpoints
Quick Start