To differentiate & quick finding the debug results in feature script notices

While working on complex & lengthy programs, it is difficult to quickly find the specific debug results in feature script notices window especially when there are numerous debug results. Currently, we can use println method to attach string to differentiate debug results. As an alternate method, i propose OnShape to add the line number to debug results in the notices window something like below. 

Feature studio:
335           debug(context,targetFace);
336           return;

Currently:
debug: Query resolves to 1 face
Proposal:
debug:335- Query resolves to 1 face
Tagged:

Comments

  • lougallo
    lougallo Member, Moderator, Onshape Employees, Developers, csevp, pcbaevp Posts: 2,020 image
    @KinThis seems like a request for a stack trace.  Although this would take you to the line where the debug was added, it does not really help diagnose the issue you might be debugging.
    Lou Gallo
    Sr. Director of Product Definition. UX and Support