英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论