vampir Posted May 15, 2015 Posted May 15, 2015 I will teach you how to fix your java bugs, a lot more effectively.What you will need: https://www.jetbrains.com/idea/ First i will show what you will be able to do, and at the end how to set it up. 1. Setting Break Points: When JVM will reach the breakpoint, whole game will freeze(so just use it on your test server) and you will be able to see:- Stacktrace(it tells you the path that JVM passed to reach the Break Point) - Variable values(you can change however you like) - You can setup the Watches(if you have got access to the object, you can take look for its content) - You can run any code fragment you like 2. You can make Break Point stop, only when condition returns true 3. You can log messages to the IDE console without suspending the thread How to install it? 1. Click Run > Edit Configurations2. Add new Remote(we are setting up gameserver that will run on our pc, it is called remote because it is not started by IDE)3. Set the name, click Shared Memory + Attach mode(Listen can be useful sometimes, but its faster to run the server with Attach mode), set the port(i use ports from 5005-5015)4. Edit your StartGameServer.bat. After java add "-agentlib:jdwp=transport=dt_shmem,server=y,suspend=n,address=5007"5. Run your server6. In IDE click Run > Debug 'GameServer' 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.