I learned more about the debugger today for example the option to hot swap code with the "Compile and Reload File" feature aka hotswap code or other very useful debugging tools. However i am running my code on a remote linux server and my original try of using intelijs remote Debugging isnt working pretty much. I can pause and read out but not modify it pretty much. I am currently using a script to make an jar file and push it over. Looking for someones suggestion how to add full debug functionality like you would have while running on client.
Script:
variable setters left out.
Copy the JAR file to the remote server using rsync
rsync -avz --delete --progress -e "ssh" /home/myusername/IdeaProjects/BBsentials_Server_and_Bot/out/artifacts/dc_bot_jar/dc-bot.jar $server:/home/dummy/bbonline.jar
SSH into the remote server and start the JAR file with remote debugging enabled
ssh -L $debugPort:localhost:$debugPort $server << EOF
Kill any existing Java processes
killall java
Start the JAR file with remote debugging enabled
su -c "java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=localhost:$debugPort -jar /home/dummy/bbonline.jar $dbPasswd" dummy
EOF