Navigating to source code links in the debug console using the keyboard

Answered

I'm trying to use pycharm without a mouse. I can run a debug session, naviagate to the debug colsole (Alt-5), and switch to the console tab (Alt-Left) to read the traceback. The last thing I need to do is to follow one of the blue links to the source code. I can't see how to do this without a mouse. Thank you for your time.

6 comments
Comment actions Permalink

Hi Sergey,

Thank you for your suggestion, but the shortcut you've linked to is for navigating between simple code errors which have been flagged by the IDE. These typically include only syntax mistakes.

What I want to do is jump to the position in the source code which threw the most recent line in the trace output in the Run/Debug console: the equivalent of clicking on one of the blue links in the console

0
Comment actions Permalink

>but the shortcut you've linked to is for navigating between simple code errors which have been flagged by the IDE.

I believe Navigate | Next Highlighted Error should actually do that and the one I previously mentioned should do what you are looking for.

Do you have an example to demonstrate when it doesn't work as intended? It works fine on my side.

0
Comment actions Permalink

Thank you Sergey, You're quite right, that is exactly what I was looking for. The keyboard shortcut to use was (by default for me using "Default for XWin") Ctrl-Alt-Down and Ctrl-Alt-Up. These strangely didnt work for me, even after disabling all plugins and checking for clashes with other shortcuts. The fix was to remove the default binding and manually rebind them.

0
Comment actions Permalink

Note that the same problem applies to 'Navigation/Next Change and Previous Change' I can reproduce the bug but restoring the shortcuts to defaults, but it is a trivial fix so not sure if it's worth raising a ticket.

0
Comment actions Permalink

Hmm, I couldn't reproduce it on my side. Could you report it to https://youtrack.jetbrains.com/issues/PY, attach idea.log file from Help | Show Log in... and provide steps for reproducing?

0

Please sign in to leave a comment.