I have a small java program. It loads a jni dll and that dll loads a normal win32 dll. I would like to debug which arguments the Java application in the end provides to one specific call of the win32 dll. My plan was to put a breakpoint on this DLL call in ollydbg and then inspect the stack. But I have to provide an executable when I start the debug mode in ollydbg so the only option I have is provide java.exe with the parameters to start my java program. But I can only set the breakpoint in the DLL when the DLL is eventually loaded which requires me to basically run the program. I can't see how I can't "halt" the execution to set the breakpoint and if I could halt somehow I wouldn't need the breakpoint. Can anyone tell me what I need to do?
You can instruct the debugger to break when a particular dll is loaded.