远程调试一般是如何实现的

发布于 2024-10-12 12:11:25 字数 245 浏览 2 评论 0原文

我使用从 JDeveloper 到 Weblogic 服务器的远程调试已经有一段时间了,发现它非常有用。但我有兴趣了解远程调试在技术上是如何实现的。

当我在调试服务器的远程计算机上进行任何 java 代码更改并在 jdeveloper 中重建类时,代码更改会自动获取服务器。这是怎么发生的?该工具是否将网络上编译好的java类发送到服务器?

任何人都可以分享任何解释远程调试技术细节的文档/链接吗?

谢谢&问候, 哈里什

I have been using remote debugging from JDeveloper to Weblogic server for quite sometime and found it's very useful. But I am interested in understanding how remote debugging is implemented technically.

When I make any java code change and rebuild the class in jdeveloper on a remote machine from where I am debugging the server, the code changes are automatically picked up the server. How does this happen? Does the tool send the compiled java class on the network to server?

Can any one please share any documents / links explaining the technicalities of remote debugging.

Thanks & Regards,
Harish

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

み零 2024-10-19 12:11:25

不确定您是在询问一般的远程调试,还是在询问您所描述的特定工具。

我对 Java/jdeveloper 了解不多,但一般远程调试的工作原理如下:

  • 在目标计算机上,一个特殊的服务器进程挂钩到您想要调试的可执行文件,就像调试器一样当本地运行时。该服务器不必了解符号和源代码,只需运行可执行文件即可。使用系统命令,它可以要求它停止并检查其内存空间。
  • 在主机上,调试器本身运行,并且还具有可执行文件及其源代码的副本。调试器使用某种协议(TCP/IP 或嵌入式设备的串行协议)与目标计算机上的服务器进行通信,并要求其单步执行,检查从可执行文件中的调试信息中了解的某些内存位置,可以显示正在向用户调试的源代码等。

例如,阅读 gdbserver 这可能是最流行的远程调试服务器。

希望这有帮助:)

Not sure if you're asking about remote debugging in general, or for the particular tools you're describing.

I don't know much about Java/jdeveloper, but in general remote debugging works as follows:

  • On the target machine, a special server process hooks into the executable you want to debug, just like a debugger would when running locally. This server doesn't have to know about symbols and source code, just have the executable running. Using system commands it can ask it to stop and examine its memory space.
  • On the host machine the debugger itself runs and also has a copy of the executable, and of its source code. The debugger communicates with the server on the target machine using some kind of protocol (TCP/IP or maybe serial for embedded devices) and asks it to step, examines certain memory locations it knows about from the debug info in the executable, can show the source code being debugged to the user, etc.

Read, for example, on gdbserver which is probably the most popular remote debugging server out there.

Hope this helps :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文