question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CQGI debug() colors

See original GitHub issue

As 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:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
adam-urbanczykcommented, Mar 26, 2020

After merging #127 it is possible to specify color like so

show_object(obj,name='a',options=dict(color='red'))
0reactions
roipoussierecommented, Mar 2, 2021

Closing since #127 solves this issue and enough documentation has been added in the readme. 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found