逛逛shmemBase_attach失败:系统找不到指定的文件“尝试连接到小程序调试时, [英] Getting 'shmemBase_attach failed: The system cannot find the file specified' when trying to attach to applet to debug
问题描述
我使用NetBeans 6.1。
I'm using netbeans 6.1.
我有我的Java运行时设置如下:
I've got the following in my java run time settings:
-agentlib:JDWP = =运输dt_shmem,地址= jdbconn,服务器= Y,暂停= N
和在附加对话框NetBeans中的以下内容:
and the following in the attach dialog in netbeans:
调试:调试JPDA
连接器:共享内存连接(通过共享内存到其他VM附加)
交通:dt_shmem
名称:jdbconn
我在NetBeans从 FaqDebuggingAppletRemotely 页面上设置的Wiki。
I got the above settings from the FaqDebuggingAppletRemotely page on the netbeans Wiki.
该小程序是在aspx页面(小程序,whcih签订后,可通过客户端浏览器传递到传统平台的方法,我是C#开发人员真的)。我已经设法获得安全警告,以显示它给了我一个机会,附加到小程序,但每当我尝试将我看到的:
The applet is in an aspx page (the applet, whcih is signed, is a method of communicating via the client browser to a legacy platform, I'm a C# developer really). I've managed to get the security warning to display which gives me a chance to attach to the applet but whenever I try to attach I see:
附加到jdbconn
shmemBase_attach失败:系统找不到指定的文件
在NetBeans中的输出窗口。
in the output window in netbeans.
任何帮助感激地接受!
推荐答案
在使用共享内存选项(运输= dt_shmem)调试,你使用的是Windows内部共享内存中对象的调试器和JVM之间的通信。
When you debug with the shared memory option (transport=dt_shmem), you're using Windows internal shared memory objects to communicate between the debugger and the jvm.
这意味着,如果你是:
一个。从同一台物理机器调试不作为你的JVM或
a. Not debugging from the same physical machine as your jvm, or
乙。不工作的Windows操作系统,
b. Not working on a Windows OS,
您可以在此模式下进行调试。
You can not debug in this mode.
我不知道,如果你运行在虚拟机上一个窗口的Linux工作站上会发生什么......也许工作,可能不会。
I'm not sure what would happen if you ran a Window on a VM on a Linux station...Might work and might not.
如果上述两种都是精品,这将需要顺藤摸瓜,找出问题,但在此期间,你可以用普通的插座连接。
If both of the above are fine, it would require a deeper investigation to find out the problem, but in the mean time, you could attach with a plain socket.
在Java运行时间参数说明:
In the Java run time parameters specify:
-Xdebug -Xrunjdwp:交通= dt_socket,服务器= Y,地址= 8000,暂停= Y
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=y
这告诉你的JVM在调试模式下运行,加载JDWP库,等待连接到端口8000连接,并且直到这样的连接到达暂停执行。
This tells your jvm to run in debug mode, load the jdwp library, wait for connection to attach in port 8000, and suspend execution until such a connection arrives.
在IDE中设置相应的远程调试器。我不知道Netbeans的,但它会是这样的连接器=插座连接器,地址= 8000。
当你开始你的网页,直到您连接小程序将冻结加载,当然你不能连接直到达到聆听的阶段。
In your IDE set the remote debugger accordingly. I don't know Netbeans, but it would be something like Connector = socket connector, address=8000. When you start your web page, the applet will freeze loading until you connect, and of course you can't connect until it has reached the listening stage.
祝你好运!
这篇关于逛逛shmemBase_attach失败:系统找不到指定的文件“尝试连接到小程序调试时,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!