Post Debugger: Difference between revisions
No edit summary |
No edit summary |
||
| Line 15: | Line 15: | ||
The legacy post debugger was an experimental tool that was used with some versions of Compost3 to assist developers in debugging post processors. It was de-supported with GibbsCAM V11 and Compost4. | The legacy post debugger was an experimental tool that was used with some versions of Compost3 to assist developers in debugging post processors. It was de-supported with GibbsCAM V11 and Compost4. | ||
=Compost4 Integrated Debugger= | |||
Compost4 v 4.3 and later includes an integrated debugger. | Compost4 v 4.3 and later includes an integrated debugger. | ||
==File Format== | |||
Compost was designed from inception to contain integrated debug services and the POST format has always included debug information. The debugger built into Compost4 works using these features of the POST format, so it can only debug posting sessions that use a POST file. Compost4 always upgrades a PST file into a POST when opened. When using the debugger post developers must use the POST version of the file inside GibbsCAM when debugging. | Compost was designed from inception to contain integrated debug services and the POST format has always included debug information. The debugger built into Compost4 works using these features of the POST format, so it can only debug posting sessions that use a POST file. Compost4 always upgrades a PST file into a POST when opened. When using the debugger post developers must use the POST version of the file inside GibbsCAM when debugging. | ||
==Features== | |||
Debugger Features include | Debugger Features include | ||
* Breakpoints | * Breakpoints | ||
| Line 28: | Line 28: | ||
* Variable/Flag inspection (Variables) | * Variable/Flag inspection (Variables) | ||
* Program State inspection (Watches and Callstack) | * Program State inspection (Watches and Callstack) | ||
== Usage == | |||
The Compost4 debugger has 4 software components. | |||
* Compost4 v.4.3 or later | |||
* GibbsCAM 11.8.2 or later (soon to be 11.3.x or later) | |||
* GibbsCAMCompostDebugAddin (the plug-in that links GibbsCAM and Compost). | |||
The GibbsCAMCompostDebugAddin is shipped with all compatible versions of GibbsCAM, but is disabled by default. Before a post can be debugged, this plug-in must be manually enabled in the plug-in manager. | |||
When enabled, the post developer has 2 choices for how to start a debug session. | |||
===Starting from GibbsCAM === | |||
When a part is open in GibbsCAM and a post is selected, the Compost Debugger -> Attach to Compost menu item can be used to start a debug session using the current part/post. If there are no compost instances running, GibbsCAM will start a new one and open the selected post. If a single compost instance is already running, it will automatically be used. If there are multiple compost instances running the plugin will show a compost selection dialog to allow the user to pick what compost instance to use. | |||
===Starting from Compost=== | |||
A post developer can trigger a debug session from the debug menu or the debug toolbar button. When started from Compost, a new instance of GibbsCAM is always started. | |||
==Connecting GibbsCAM and Compost== | |||
Once, the session is started, GibbsCAM and Compost will connect to each other and establish a debug link. When the link is established, Compost will enable a number of debug features. | |||
[[Category:Articles]] | [[Category:Articles]] | ||
Revision as of 17:23, 1 June 2016
Overview
Debugging a post processor requires several components.
- A debug enabled post
- A debug tool
- A GibbsCAM session with a part that can run the post
With these components, the debug tool allows the post developer to inspect how the GibbsCAM part uses the post processor as it runs.
Legacy Post Debugger
The legacy post debugger was an experimental tool that was used with some versions of Compost3 to assist developers in debugging post processors. It was de-supported with GibbsCAM V11 and Compost4.
Compost4 Integrated Debugger
Compost4 v 4.3 and later includes an integrated debugger.
File Format
Compost was designed from inception to contain integrated debug services and the POST format has always included debug information. The debugger built into Compost4 works using these features of the POST format, so it can only debug posting sessions that use a POST file. Compost4 always upgrades a PST file into a POST when opened. When using the debugger post developers must use the POST version of the file inside GibbsCAM when debugging.
Features
Debugger Features include
- Breakpoints
- interactive code stepping
- Output inspection (Output Window)
- Variable/Flag inspection (Variables)
- Program State inspection (Watches and Callstack)
Usage
The Compost4 debugger has 4 software components.
- Compost4 v.4.3 or later
- GibbsCAM 11.8.2 or later (soon to be 11.3.x or later)
- GibbsCAMCompostDebugAddin (the plug-in that links GibbsCAM and Compost).
The GibbsCAMCompostDebugAddin is shipped with all compatible versions of GibbsCAM, but is disabled by default. Before a post can be debugged, this plug-in must be manually enabled in the plug-in manager.
When enabled, the post developer has 2 choices for how to start a debug session.
Starting from GibbsCAM
When a part is open in GibbsCAM and a post is selected, the Compost Debugger -> Attach to Compost menu item can be used to start a debug session using the current part/post. If there are no compost instances running, GibbsCAM will start a new one and open the selected post. If a single compost instance is already running, it will automatically be used. If there are multiple compost instances running the plugin will show a compost selection dialog to allow the user to pick what compost instance to use.
Starting from Compost
A post developer can trigger a debug session from the debug menu or the debug toolbar button. When started from Compost, a new instance of GibbsCAM is always started.
Connecting GibbsCAM and Compost
Once, the session is started, GibbsCAM and Compost will connect to each other and establish a debug link. When the link is established, Compost will enable a number of debug features.