cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging ACL scripts

SOLVED
Highlighted
Level 8

Debugging ACL scripts

I know that one can use the message command at every line but I would like to step through code (especially if looking through code someone else has written.

 

Has anyone discovered an efficient and productive way to debug ACL scripts? Are there plans for a PTC IDE to be able to help with debugging?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Debugging ACL scripts

At one time, it was possible to link Arbortext to the debugger in Eclipse, letting you do the sort of thing you are asking about. However, the developer who showed it to me hasn't been with PTC for a few years, so I don't know if it still works with the current versions of Editor. I don't remember if that info ever made it onto this list, but it's possible it did--you might have some luck if you search the message board for "eclipse".

 

Personally, I tend to rely on a combination of response() and the eval command to generate debugging messages, and that gets me pretty far. The eval command is nice because it doesn't block execution the way response() does, it writes messages to a message window.

2 REPLIES

Re: Debugging ACL scripts

At one time, it was possible to link Arbortext to the debugger in Eclipse, letting you do the sort of thing you are asking about. However, the developer who showed it to me hasn't been with PTC for a few years, so I don't know if it still works with the current versions of Editor. I don't remember if that info ever made it onto this list, but it's possible it did--you might have some luck if you search the message board for "eclipse".

 

Personally, I tend to rely on a combination of response() and the eval command to generate debugging messages, and that gets me pretty far. The eval command is nice because it doesn't block execution the way response() does, it writes messages to a message window.

Re: Debugging ACL scripts

Thank you.

 

I have been using a debug in a way that is global and the only thing I do is pass in the variable I wish to debug and it does an eval.