Rank: Advanced Member Groups: Registered
Joined: 25/09/2013(UTC) Posts: 325 Location: IL Was thanked: 19 time(s) in 17 post(s)
|
Is it possible to find an error in a function with program debugging features? Meaning - the program stops and highlights errors in red. If there is an error in a function it stops and reports the error where the function is called. Is it possible to have some sort of indicator within the function?
In my specific case I have a large function that is reporting that the number of rows and/or columns of matrices do not match. I have many matrices / variables to go thru and having a hard time spotting the culprits.
Thanks!
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,980 Was thanked: 1120 time(s) in 718 post(s)
|
To display the debugger window: View> Debugger window This shows the definitions valid in the current execution context.
To step through the sheet use the Continue and Step into buttons in the toolbar (or simply F11)
To pause on error (to inspect debug window) set: Calculation> On error> pause
You also can set breakpoints (context menu of math regions).
|
|
2 users thanked mkraska for this useful post.
|
on 17/08/2020(UTC), on 18/08/2020(UTC)
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
Construct piece-wise to sanity piece-wise. Deceptively simple !
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,356 Was thanked: 815 time(s) in 516 post(s)
|
Hi. I prefer the use of trace: https://smath.com/wiki/trace.ashx at some strategic points to see the procedure internal values and if they are what I expect. Best regards. Alvaro.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.