So is there some setting in Karel side or something else to make it possible to execute/debug Karel program line by line? Because I have created a program which basically is doing what I like it to do. But There are some minor things which I like to improve. But that would be easier to do if I can execute program in STEP mode. Now when Im calling Karel program in TP program.....tp program continues at same time.
How to execute Karel program line by line?
-
RookieWithRobots -
April 24, 2019 at 9:53 PM -
Thread is marked as Resolved.
-
-
I guess you are starting the KAREL program with RUN. Until you debug it, call it using CALL so it's not running at the same time as other programs. Then you can use STEP to run the program line by line. Unfortunately you cannot see inside the KAREL program. It will display the current line, but that's all. What I normally do make some "debug" variables to print messages, data etc. on the TP. Debug would be a boolean variable, so I make it false after everything is ready.
-
Thanks for your help. But actually I'm using call command when using Karel program. Im using these settings in Karel side, maybe I miss something?
%COMMENT = ''
%NOLOCKGROUP
%NOPAUSE = COMMAND + TPENABLE
%NOBUSYLAMP
%NOPAUSESHFT
%ENVIRONMENT FDEV
%ENVIRONMENT REGOPE .
%ENVIRONMENT STRNGCould it be something related to virtual controller etc?
-
Ok then you can do the following:
MENU -> TEST Cycle -> Step statement type to ROUTINE from TP & MOTION.