Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Using debug(context,...) with id

How can I use an id in order to have debug highlight the element in question?
Something like:
debug(context, id);
0
Comments
You need to make a
query
for the id of the feature in question:e.g.
debug(context, qCreatedBy(id + "extrude1", EntityType.BODY), DebugColor.MAGENTA);
From the FeatureScript docs:
Thanks - I believe that is the example I was looking for.