Step-Wise Calculation at specific point?

Step-Wise Calculation at specific point? - Сообщения

#1 Опубликовано: 17.08.2018 12:11:17
Dionysios J. Pantazis

Dionysios J. Pantazis

16 сообщений из 179 понравились пользователям.

Группа: User

Is there a way to initiate the step calculation (F11) at a specific place in the worksheet?

When ever I try to use it, it always goes to the begining.

Is there a way to go backwards a step or two?

I am trying to debug a for-next loop and it takes a LONG time to get to the place I need to be doing it step at a time.

Is there a doc or page that describes this sort of thing? I have not been able to find anything yet.

Thanks in advance
Dennis
Join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#2 Опубликовано: 17.08.2018 14:48:37
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

Is there a way to initiate the step calculation (F11) at a specific place in the worksheet?

When ever I try to use it, it always goes to the begining.



Once the document is working, you can set "Auto-calc".
That may have no effect for debugging a for loop.
If you want to calculate sin(30) at the end of a greedy work sheet,
and "Auto-calc" ON, it will just calculate sin(45)=

You can attach your document for doctoring

Jean

#3 Опубликовано: 18.08.2018 05:09:33
Davide Carpi

Davide Carpi

1416 сообщений из 2873 понравились пользователям.

Группа: Moderator

As for now I think the only way it's to insert a dummy operation in the point you want the debug starts (f.e. you can define test:1 and everything will be recalculated from that point onwards)
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#4 Опубликовано: 19.08.2018 19:15:29
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

As for now I think the only way it's to insert a dummy operation in the point you want the debug starts (f.e. you can define test:1 and everything will be recalculated from that point onwards)


More simply: copy/paste on new page what belongs to debugging,
or disable all stuff that does not belong to debugging.
Modular programs are easier to debug piece wise.
#5 Опубликовано: 07.09.2018 20:30:48
Dionysios J. Pantazis

Dionysios J. Pantazis

16 сообщений из 179 понравились пользователям.

Группа: User

Wrote

As for now I think the only way it's to insert a dummy operation in the point
you want the debug starts (f.e. you can define test:1 and everything will be recalculated from that
point onwards)



Davide-

I am trying to understand how to do this. Here are some screens- there are a bunch of linked pages.
Even though we are a bit of a 'family' here and we freely share things, one of the pages uses data and
equations from an ANSI/model code that I am not supposed to redistribute so I don't want to toe that line.
There are some of those proprietary equations in here too, but I will try to move them out later.
But MY top level page is attached.

I want to inspect the sections/lines below the arrows I inserted.

As I understand it, in order to get there, I have to step-wise evaluate to that point. When I want to make
an edit, I have to interrupt the processing and restart it from the beginning. In this case, the processing
jumps around a LOT because of the way i set it all up.

If I put test:1 in there, I am not sure how to jump to that point. I use the Step Into (F11) button and the
Continue button to get to where I want to get to.

Whole page-
Wind Loads-COC.sm (121 КиБ) скачан 31 раз(а).

Screen at a time-
debug-Capture-1.PNG

debug-Capture-2.PNG

debug-Capture-3.PNG

debug-Capture-4.PNG
Join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#6 Опубликовано: 07.09.2018 20:59:38
Davide Carpi

Davide Carpi

1416 сообщений из 2873 понравились пользователям.

Группа: Moderator

Step 1 is to evaluate the whole worksheet
2018-09-08 01_54_17-SMath Studio - [Page3_].png
Step 2 is to set the breakpoint
2018-09-08 01_54_33-SMath Studio - [Page3_].png
Step 3 is to trigger the evaluation of the block, by defining something before that block
2018-09-08 01_56_04-SMath Studio - [Page3_].png

Once you find something wrong, edit it and set the breakpoint, then define again something before the block
2018-09-08 01_56_42-SMath Studio - [Page3_].png

(and repeat... anything above the yellow variables is kept from the first evaluation)
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
2 пользователям понравился этот пост
frapuano 08.09.2018 05:40:00, francesco rapuano 10.01.2025 18:47:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений