CQGI debug() colors
See original GitHub issueAs a beginner, I would like to understand what is in the object stack and what I select. As far as I understand, the debug()
is here for that purpose.
When executing the CQGI script example, provided in the documentation:
base_cube = cq.Workplane('XY').rect(1.0,1.0).extrude(1.0)
top_of_cube_plane = base_cube.faces(">Z").workplane()
debug(top_of_cube_plane, { 'color': 'yellow', } )
debug(top_of_cube_plane.center, { 'color' : 'blue' } )
circle=top_of_cube_plane.circle(0.5)
debug(circle, { 'color': 'red' } )
show_object( circle.extrude(1.0) )
I get this error:
TypeError: () takes one positional argument but 2 were given
Is CQGI not yet fully implemented in CadQuery Editor, or I missed something?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
The CadQuery Gateway Interface
debug() method is defined, which can be used by scripts to debug model output during execution. Scripts must call show_object at least once....
Read more >574170 – Separate colors in the debug view for stack ... - Bugs
Currently every stack frame in the debug view has the same color, I would like to have different colors for: * platform frames...
Read more >How to use the debug.colors function in debug - Snyk
To help you get started, we've selected a few debug.colors examples, based on popular ways it is used in public projects.
Read more >Chapter 2: Debugging Methods - Micro Focus
When you are using Animator, the background color can change depending on the ... You can use Animator to debug CGI programs using...
Read more >PDOStatement::debugDumpParams - Manual - PHP
7.2.0, PDOStatement::debugDumpParams() now returns the SQL sent to the database, ... SQL: [96] SELECT name, colour, calories FROM fruit WHERE calories ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
After merging #127 it is possible to specify color like so
Closing since #127 solves this issue and enough documentation has been added in the readme. 😃