Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline RFreund  
#1 Posted : 17 August 2020 20:37:14(UTC)
RFreund


Rank: Advanced Member

Groups: Registered
Joined: 25/09/2013(UTC)
Posts: 325
United States
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!

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline mkraska  
#2 Posted : 17 August 2020 21:58:17(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

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).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 2 users thanked mkraska for this useful post.
on 17/08/2020(UTC),  on 18/08/2020(UTC)
Offline Jean Giraud  
#3 Posted : 18 August 2020 00:27:31(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Construct piece-wise to sanity piece-wise.
Deceptively simple !
Offline Razonar  
#4 Posted : 18 August 2020 10:18:11(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

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.
Users browsing this topic
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.