[英]Debug Java in MATLAB - jdb is not found
I am trying to debug java application within matlab using the instructions from here . 我正在尝试使用来自此处的说明在matlab中调试Java应用程序。
Matlab starts good and echo: Matlab开始良好并回声:
JVM is being started with debugging enabled.
在启用调试的情况下启动JVM。
Use "jdb -connect com.sun.jdi.SocketAttach:port=4444" to attach debugger.
使用“ jdb -connect com.sun.jdi.SocketAttach:port = 4444”来附加调试器。
but when I try to attach the debugger I get: 但是当我尝试附加调试器时,我得到:
>> jdb -connect com.sun.jdi.SocketAttach:port=4444
>> jdb -connect com.sun.jdi.SocketAttach:port = 4444
Undefined function 'jdb' for input arguments of type 'char'.
类型为'char'的输入参数的未定义函数'jdb'。
What am I doing wrong? 我究竟做错了什么?
You have to use jdb outside Matlab. 您必须在Matlab之外使用jdb 。
jdb is is a standalone app that allows you to connect to running JVM. jdb是一个独立的应用程序,可让您连接到正在运行的JVM。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.