how to debug the karel step by step?
how to debug the karel step by step
-
leoyang -
June 25, 2018 at 12:34 PM -
Thread is marked as Resolved.
-
-
Karel is closed source, so you can't decompile from the p-code file. You will need to have the original karel source if you want to be able to debug line by line.
-
The Karel compiler doesn't do any optimization though, so if you do have the source, you can turn step mode on, and then step through the program by watching the line number displayed at the top of the teach pendent. The line number displayed there will match the line number in the Karel source file. Couple that with watching the Karel variables in the data screen, and it works ok for debugging.
-
that's what i want.
thanks very much!