Debug TCL Script

Bocaj22
Bocaj22 Altair Community Member
edited May 2023 in Community Q&A

Hello,

As far as I know, it's not possible to create debug breaks in TCL code when running within Hypermesh. Is this true? I assumed it to be the case but never actually asked and confirmed. Tkcon, which is running within Hypermesh has debugging capabilities (idebug), but it doesn't appear to work. Also, Compose can debug TCL code, but I don't believe it can connect to Hypermesh. Anyone know differently?

Thanks.

Tagged:

Answers

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited May 2023

    Yes, I believe you are correct. I usually just use puts statements for debugging.

  • Bocaj22
    Bocaj22 Altair Community Member
    edited May 2023

    Yes, I believe you are correct. I usually just use puts statements for debugging.

    Noted, thanks. I have used the same, but it can become difficult for long scripts with many procs.

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited May 2023
    bocaj22 said:

    Noted, thanks. I have used the same, but it can become difficult for long scripts with many procs.

    In a case like that if I am getting an error hopefully it at least gives me someplace to start the search. Otherwise I just trying put some puts statements on the highest level to start narrowing down where the problem is and then drill down from there. Maybe this isn't a super efficient approach but it is effective.