如何附加调试到尚未启动的进程?

huangapple go评论58阅读模式
英文:

How to attach debug to a process that has not started yet?

问题

这与此问题类似,但有一个转折。

我需要调试一个位于 DLL 中而非可执行文件中的进程。调用方是一个我无法控制的 Java 应用程序,因此我无法从那里开始调试会话。

可行吗?

英文:

This is similar to this question, but there is a twist.

I need to debug a process that is within a DLL, not an executable. The caller is a java application which I have no control over, so I cannot start my debug session from there.

Can it be done?

答案1

得分: 0

我无法控制代码中的Java部分,所以我在需要开始调试的地方创建了一个调试附加点,通过显示一个MessageBox来实现。

这给了我时间来附加调试。

英文:

As I have no control over the Java portion of the code, I created a debug attach point by displaying a MessageBox at the point I needed the debug to start.

This gives me time to attach the debug.

huangapple
  • 本文由 发表于 2023年5月18日 01:45:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/76274877.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定