0

Ok, bit of an odd one

I'm modding an old game (IL2 Sturmovik 1946). The game is written in Java, and I have the source code (decompiled) in an Eclipse project. I've been asked to fix a curious bug with the AI and being able to insert breakpoints would greatly help me work out the rather convoluted logic flows.

The game is launched via a .exe file.

If this were a C++ application and I was using Visual Studio I would attach the debugger to the running process and pass in some symbols. Is there a way to do this with Java?

I've read somewhere that I need to run the java application with an -Xdebug command line parameter, but doing so doesn't seem to yield any results.

Any help would be much appreciated.

Thanks

1
  • Is the Exe file just a launcher which starts the Java code or does it contain own logic e.g. for providing the main window or other logic? If it is just a launcher you just have to find out what is the main class, what arguments it is called with and how the environment variables are set then you would be able to start the Java part without the exe launcher. – Robert Apr 9 '20 at 14:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.