简体   繁体   English

如何使用JavaSnoop附加到Java小程序?

[英]How do you attach to a Java applet with JavaSnoop?

I am troubleshooting a poorly documented Java applet and would like to attach to it with JavaSnoop to actually see what arguments are being passed into certain method calls. 我正在对文档记录不完善的Java小程序进行故障排除,并希望通过JavaSnoop附加到它,以实际查看将哪些参数传递给某些方法调用。 I can successfully attach to a locally run Java application in a jar file, but cannot get attachment to an applet to work. 我可以在jar文件中成功附加到本地运行的Java应用程序,但是无法附加到applet上。

I have been assuming you click "Attach & Snoop Process...", run the applet, and then should see that applet's process in the list. 我一直假设您单击“附加和侦听进程...”,运行该applet,然后应该在列表中看到该applet的进程。 I get nothing in this list when I run any applet. 运行任何小程序时,此列表中什么都没有。 Am I missing a step? 我错过了一步吗?

I am also open to alternative ways to hook the method call to read its arguments. 我也对钩住方法调用以读取其参数的其他方法持开放态度。

..alternative ways to hook the method call to read its arguments. 连接方法调用以读取其参数的替代方法。

Extend the applet and method. 扩展小程序和方法。 Embed the extended applet. 嵌入扩展的小程序。 In the extended method, log the arguments. 在扩展方法中,记录参数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM