How to run and debug a Scheme program using Dr. Racket?

I use the development environment Dr. Racket and #lang scheme language definition for course work. However, I'm not sure how best to use this tool for debugging. I would like to be able to perform a function and pass through it, observing the values โ€‹โ€‹of various functions at different points of execution.

Is it possible? If not, what is the typical way to go through the execution of a Scheme program and debug it?

+7
source share
2 answers

DrRacket includes a graphical debugging interface. When you click the Debug button, debug mode will be turned on. Now, hover over any bracket, a pink dot will appear. Right-click on it and a context menu will appear with options for setting breakpoints. Use Go, Step, etc. You can observe the stack and variables in context in the sidebar.

See docs .

+11
source

Look at the toolbar - there is a button with the inscription "debug", which starts the execution of the code in debug mode. Once you click on it, you can set breakpoints and check local variables.

+2
source

All Articles