Can't figure out how to debug scripts. Ran some lines of a stream script then typed '2+2' (without the single quotes) in the Debug input prompt. I expected output '4' but just got the echoed '2+2'.
Does feeding the prompt not result in evaluation of the input? I'm trying to understand what can be done with the Debug prompt in support of debugging efforts?
Is there any way to set breakpoints? Can I examine variables/objects? Can I perform calculations and issue commands?
Answer by Snowdon (830) | Jun 21, 2016 at 05:43 AM
Hi Mauricio
As far as I know you cannot set breakpoints in here, but you could for example run the first part of a script using the 'run selected lines only' button and then copy and paste the next lines into the prompt one at a time. If you want to see a result you need to use a print statement of some sort.
For example if I ran my script with just one statement
x= 23
then I could type in at the prompt y = x+1. It would do the calculation but not show the result until I typed print(y)
Hope that helps
Ted
user license transfer Spss Modeler 7 Answers
authorization code reset 0 Answers
SPSS error 0 Answers
SQL pushback with SPSS Modeler 2 Answers
How to generalize fields in Modeler ? 2 Answers