PyCharm 2017.3 Help

Jumping 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 Starting 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

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

Last modified: 28 March 2018

See Also