Download remote debugging files

Hi community,

I'm running some containers in a cluster and want to be able to do remote debugging. I created an image with my application compiled in debug and added ssh. With port forwarding I'm now able to do remote debugging.

The only draw back is, that downloading the latest remote debugging tools and uploading them to the container takes a long time (especially in home office ;-)). I was now wondering if there is an URL available where I could just curl the necessarry files while building the image and have them baked into the container already.

Thanks in advance

0
2 comments

Hello Uli, 

 

You can manually deploy the remote debugging tools on the target host beforehand: Debug remote applications via SSH | JetBrains Rider Documentation 

Let me know if this does not fulfill your requirements. 

 

Thanks,

Tom

0

Hi Tom,

thank you for your reply.

This is what is working for me now.

RUN apt-get install -qqy --no-install-recommends \
   sed \
   unzip \
   wget

# Download JetBrains Debugger Agent and make it executable
RUN wget -O /home/app/jetbrains_debugger_agent  \
   "https://download.jetbrains.com/rider/ssh-remote-debugging/linux-x64/jetbrains_debugger_agent_20240726.40.0" && \
   chmod +x /home/app/jetbrains_debugger_agent

RUN wget --content-disposition "https://data.services.jetbrains.com/products/download?code=RRD&platform=linux64" && \
   FILENAME=$(ls JetBrains.Rider.RemoteDebuggerUploads.linux-x64.*.zip) && \
   VERSION=$(echo $FILENAME | sed 's/JetBrains\.Rider\.RemoteDebuggerUploads\.linux-x64\.//g' | sed 's/\.zip//g') && \
   mkdir -p /home/app/.local/share/JetBrains/RiderRemoteDebugger/$VERSION && \
   unzip $FILENAME -d /home/app/.local/share/JetBrains/RiderRemoteDebugger/$VERSION && \
   chown -R app: /home/app/.local/share/JetBrains/RiderRemoteDebugger/$VERSION
   
RUN echo 'app:SECRET' | chpasswd

RUN chown -R app: /app

All the best
Uli

0

Please sign in to leave a comment.