Start the debugger session
Starting a debugger session is very similar to running the program in normal mode. The debugger is attached behind the scenes, so you don't have to configure anything specific to start a debugger session. If you are able to run your program from RustRover, you will also be able to debug it using the same configuration.
note
While RustRover provides a way to debug simple applications without any extra setup, some tasks require working with run/debug configurations, just like with regular running of the program.
Any debugger session is based on a run/debug configuration. The configuration type depends on the type of your application and the runtime environment.
Click
next to the desired entry point and select Debug.
This will create a temporary run/debug configuration for you. After that, you can customize and save this temporary configuration if needed.
tip
To quickly set up a run/debug configuration, click
next to the entry point and select Modify Run Configuration.
If you already have a run/debug configuration, select it from the run/debug configurations list and click the
button or press ShiftF9.
Gif
When the debugger session is running, you can pause/resume it using the buttons on the toolbar of the Debug tool window:
To pause a debugger session, click
.
To resume a debugger session, click
F9.
note
Pausing the program is not an alternative to using breakpoints as this method doesn't let you use the full range of debugger functionality. For example, you cannot evaluate expressions after pausing the program.
Click the
Rerun button in the Debug tool window or press CtrlF5.
Click
in the Debug tool window.
Alternatively, press CtrlF2 and select the process to terminate (if there are two or more of them).
Thanks for your feedback!