Step back during debugging

Answered

Hi all,

is there any possibility how can I do step back in a debug mode? In VS there is a yellow arrow and it's possible to move it by mouse.

Thank you for reply.

13 comments
Comment actions Permalink

Hi!

Feature is actually there, but for now not that easy to discover.

Put caret to the line where you want to move execution and call "Set Next Statement" from context menu.

2
Comment actions Permalink

I have a dumb question.  What is this caret you speak of?  It's not the cursor.  When I put the cursor to the line I want, I see no such thing from the context menu.

0
Comment actions Permalink

@Steve, my previous answer is outdated. Now you can drag the yellow arrow similar way as in VS.

0
Comment actions Permalink

Could you explain it in more detail, I can't find the yellow arrow in IntelliJ.

0
Comment actions Permalink

Hello, in Rider it looks this way:

There are arrows Skip to Here and Run to Here, you can find more information in the corresponding Help section.

0
Comment actions Permalink

Hello,

I'm using Rider for UE4 and this looks different for me.

I'm on the latest version. Am I missing something?

0
Comment actions Permalink

Hello Tobias, 

In Rider for Unreal it should be added soon as well, since it was recently added to CLion, as it  is mentioned in the corresponding post.

0
Comment actions Permalink

Does not work when you break on exception. You cannot step back a and evaluate what lead to exception. This is super annoying during debugging.. such thing is working in Visual Studio.

0
Comment actions Permalink

Hello Jindrich Cincibuch, could you please provide some specific example when you can step back in VS and unable to do it in Rider? It should work unless the exception is thrown by external code, so a sample would help us to identify the issue.

0
Comment actions Permalink

Hi Olga Diakonova

In Rider Docs > Skip to Cursor it is mentioned:

You can jump back, that is to a statement that was already executed. In this case the already executed statements are not undone.

VS features a historical debugger. This should allow to step back and see the previous value of variables. Does Rider have such a functionality or is it planned? This would be a game changer.

0
Comment actions Permalink

Olga Diakonova

Hi, see this, cannot move the caret to other part of the method when in catch block. VS can do this, it is very useful for debugging since you can then rerun the code which thrown the exception. Without this debuging in Rider is pain.

0
Comment actions Permalink

Jindrich Cincibuch, is it possible to share a project sample which could help us to reproduce the issue? You can send it with an issue on our tracker, you can make it private there.

0

Please sign in to leave a comment.