balena-minecraft-server icon indicating copy to clipboard operation
balena-minecraft-server copied to clipboard

[QUESTION] How to attach a debugger to the minecraft server?

Open MadMowgli opened this issue 6 years ago • 3 comments

Simple question: This guide on BukkitWiki explains how you can attach an IDE's debugger to the minecraft server by editing the startup command line arguments. Where do I configure those startup arguments for my balena mc-server?

MadMowgli avatar Oct 29 '20 19:10 MadMowgli

Issue-Label Bot is automatically applying the label question to this issue, with a confidence of 0.81. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Oct 29 '20 19:10 issue-label-bot[bot]

@MadMowgli I'm pretty sure the file that you need to edit is in the github repo in mc-server image Then edit start.sh with whatever editing program you use (e.g notepad++) image image The part I've highlighted in the above picture is the command that will initialise the server on every launch but I'm pretty sure the thing you would need to edit will be somewhere in that start.sh file

EvilNick2 avatar Oct 29 '20 22:10 EvilNick2

Thats exactly how to do it. Thanks @EvilNick2 ! I don't see any reason btw to even add a debugger. Server developement should happen on the ide host itself in my opinion.

AlexProgrammerDE avatar Dec 02 '20 15:12 AlexProgrammerDE