PyCharm 2020.1 Help

Jump to Cursor

Introduction

If one would like to re-debug starting from a particular line, even if this line is located "up-stream", PyCharm provides such a possibility. Thus one will avoid the necessity to finalize debugging prior to re-debug.

Prerequisite

The debugger session must be started! Read the Start the debugger session section for details.

Debugging a specific line of code

Provided that the debugger session is launched, place the caret at the statement you would like to repeat, and do one of the following:

  • On the editor's context menu choose Jump to Cursor.

  • On the main Run menu, choose Jump to Cursor.

py jump to cursor png

The debugger session will resume at the line you've placed the caret at.

Last modified: 08 May 2020