Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
Hello,
in the old Mathcad you could step to the last error in programms, now I have no clue what the meaning of the messages are...
thanks
Maybe the absence of any debugging tools was made on purpose and users of Prime are not supposed to do any programming at all. As PTC stated it here in http://blogs.ptc.com/2012/02/29/mathcad-prime-2-0-is-here/:
"Today, we are proud to release a powerful productivity and analysis tool that allows engineers to stay focused on engineering, and not programming and debugging."
'Nough said.
Efried wrote:
Hello,
in the old Mathcad you could step to the last error in programms, now I have no clue what the meaning of the messages are...
thanks
Valery, you are referring to statements, not a program.
sorry now it works...
funningly enough the errors disappear with time - walking backwards through the errors - and reappear after starting the process again..
PRIME is a wonder!
Efried wrote: PRIME is a wonder!
... but has not trace and pause functions and the trace window
Regular Mathcad has those debbugind tools:
:
Trace operator in Mathcad Prime (as in Mathcad 12, 11, 2001,,,
Dear Valery, I like your approach. But if you head for a walk through in a programm with errors this method is not of big help unless you insert an "onerror" statement which returns the current state. Again such functions are lacking in Prime.
I personally do not understand why it is so complicated to give programmes the same set of functions like in Mathcad. For the moment I'm stuck because it is not possible what went wrong converting the sheet from Mathcad to prime.
Another problem with storing the tracing results is that this may create memory problems.
One old idea for programm debugging - useing not the add line operator but a matrix:
Valery Ochkov wrote:
One old idea for programm debugging - useing not the add line operator but a matrix:
But again this won't help for stepping through a program which has errors, as was demanded by EFried, or does it??
actually it is possible to step through. However this helped not tracing the error - and Prime has some recalculating cycles which do not allow to use the feature every time you try. So sometimes the walk through is disabled. There was no reaction to my question about the int32 error, so I have given up testing the calculation times with multi threading for the moment.
Efried wrote:
There was no reaction to my question about the int32 error, so I have given up testing the calculation times with multi threading for the moment.
A very specific error, I guess. You once wrote in a thread that you removed the version of VB Runtime which is stated as reqirement for MC15, replaced it by a newer one and then manually registered ythe ocx. Not sure, but maybe thats the cause for the new troubles now?
yes indeed- my guess is that it is related to the C-compilers not VB.
but you can't work with ist if you don't know what is going on, If you trace back to the error, Prime recalculates and everything is fine. If you go to the call of the programm the error is here again....
The AppendPrn method for tracing has worked out - but the scalars written to the file are in conflict with the error statement "no scalar!".
And here is the potential solution - i is really cumbersome typing out Variables in Prime because of its slowness and lacking subscript "." keyboard function:
Mathcad was more tolerant towards vectors containing [n x 1] [n x 1] elements, while PRIME refuses to see the elements as scalar. Well this would mean to change a lot, but I will start checking that out with Mathcad first, saving me some time.
potentially solved....
Efried wrote:
actually it is possible to step through. However this helped not tracing the error...
Something better than nothing!