IntelliJ:跳转到调用方法的来源 [英] IntelliJ: Jump to source of calling method

查看:1007
本文介绍了IntelliJ:跳转到调用方法的来源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在IntelliJ检查中使用调试器从哪里调用方法(源调用)?

Can I using debugger in IntelliJ check from where was called method (source call) ?

例如我有方法 public Object getSomething( int i)我在这个方法中切换断点。调试器停止运行并且有我的问题 - 我可以检查这个方法的调用位置吗?

For example I have method public Object getSomething(int i) and I toggle breakpoint at this method. Debugger stoped and there is my question - Can I check from where was called this method ?

我在MacBook上使用OS X系统。

I am using OS X system on MacBook.

推荐答案

您可以使用 Ctrl + Alt + F7 跳转到方法的调用者。

You can use Ctrl+Alt+F7 to jump to the callers of the method.

(MAC上的 + + F7

(++F7 on MAC)

编辑:我认为 Ctrl + F7 + < kbd> F7 或 + F7 )会有所帮助,这会直接转到函数的调用者。

I think Ctrl+F7 (+F7 or +F7) will be helpful, this will take you straight to the caller of the function.

Edit2: Alt + 5 + 5 )拉动在Debugger窗口中,您可以看到之前进行的所有调用。在那里,您可以选择相关方法的来电者。

Alt+5 (+5) pulls up the Debugger window where you can see all the previous calls made. There you can choose the caller of your method in question.

这篇关于IntelliJ:跳转到调用方法的来源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆