IntelliJ 9中的调试shell脚本 [英] Debug shell script in IntelliJ 9

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

问题描述

是否可以在IntelliJ IDEA 9.0.3中调试shell脚本。我有一个调用java程序的shell脚本。我想在这个java程序中设置一个断点并通过它进行调试。我为IntelliJ提供了一个Bash插件,并在程序中设置断点,但它不会在断点处停止。
谢谢,
Tom

Is it possible to debug a shell script in IntelliJ IDEA 9.0.3. I hava a shell script that calls a java program. I would like to set a breakpoint in this java program and debug through it. I hava a Bash plugin for IntelliJ and have set the breakpoint in the program but it doesn't stop at the breakpoint. Thanks, Tom

推荐答案

您可以使用远程调试,用于调试从shell脚本运行的Java程序。 IDEA将建议您使用JVM选项列表,将它们添加到您调用Java VM的shell脚本中。如果启用了挂起,则应用程序将等待IDEA调试器连接,以便您可以连接并启动调试会话并在断点处停止。

You can use Remote Debug to debug the Java program which you run from the shell script. IDEA will suggest you the list of JVM options, add them inside the shell script where you call Java VM. If suspend is enabled, the app will wait for IDEA debugger connection so that you can connect and start the debug session and stop on the breakpoints.

无法调试IDEA中的shell脚本本身。

It's not possible to debug the shell script itself in IDEA.

这篇关于IntelliJ 9中的调试shell脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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