How to debug go code on remote machine using Goland? - go

I have a go codebase on a remote machine that I'd like to be able to debug using Goland. I've been trying to figure out how to set something akin to PyCharm's remote interpreter, but I haven't been able to figure it out. The best I can find is their blog's tutorial, but it's complicated by docker containers and web applications. How do I set up Goland to remotely debug?

In that blog post, Docker containers are used to simulate a remote machine.
GoLand doesn't have anything similar to PyCharm's remote debugging at the moment.
The best thing you can do is to run your application using delve as it's shown in the example container in the blog post and then connect the IDE to the remote delve instance.

Related

What does this mean when vscode remotely debugs machine learning code? Is it stuck? How to solve the problem besides quitting?

When vscode remotely debugs the machine learning code, it will get stuck. I will choose to disconnect, I want to know why it is stuck
I is not only about vscode all are coding languages debug to machine language to work your code in your laptop or smartphone or desktop. You need to start your remote debugger after configure remote debugging to configure the firewall. When configuration is complete the remote debugger window appears. Then you can use the server name and port number shown to set the remote connection.
vscode remote development allows you to use container, remote machine or windows subsystem.

can I use WSL2 for fullstack development?

I am intrigued by the WSL2 and wondering if I can use it for full stack web development using LAMP, Node or Python. I have a dual boot with linux where I have a lamp stack. My only concern is about displaying the site on a browser. For instance, say that I created a react app in the wsl2 and used visual studio code WSL to manage it. How does this build and show in the browser in wsl2?
Thank you for your solution in advance.
Update 2022/july/07: This question was right when I started using WSL and I was wondering it's implications. I am aware that WSL's IP keeps changing so it is rather a playground than an environment. Thank you for answering this query.
Look here: https://github.com/microsoft/WSL/issues/4392
You need to force 0.0.0.0 instead of using default 127.0.0.1 to
localhost.
After that you should be able to access website from local PCs browser, since ports inside WSL can be bound locally to your machine.

How to preconfigure Azure Windows image with SSH to use with Jenkins Windows Agents on Azure Cloud

I am trying to follow these instructions to us the Jenkins Plugin to create Jenkins agents with Azure Virtual Machines (via Azure ARM template).
Azure VM Agents plugin
Under Supported Features, it says:
Windows Agents on Azure Cloud using SSH and JNLP
For Windows images to launch via SSH, the image needs to be preconfigured with SSH.
I am a bit confused by this and I'm not sure what it means.
Does it mean that an SSH Client or Server should be installed on the Windows image?
There doesn't seem to be a option for setting up a Windows Azure VM with SSH access, as there is for a linux VM.
Please can anyone clarify what the set up process is?
(By the way, I have tried an unattended installation of cygwin on the Windows VM to try to run a SSH server, but I am running into a separate problem I am trying to solve. I'd like to know if this is not required.)
Answering my own question now I have got a bit deeper in. In the configuration section of the plugin, under Image Configuration, clicking the help on the launch method clarifies what's required.
It looks like a custom image needs to be custom-prepared with a SSH server pre-installed. However, it also looks like it is possible to launch an image with JNLP instead, so I will try that.
Update
I couldn't get JNLP to work (not sure why) but I did get SSH to work. Ticking the 'Pre-Install SSH in Windows Slave (Check when using Windows and SSH)' box does the trick. There's no need to pre-install on the custom image.

How to reproduce Codeship's non-Docker CI environment locally?

Is there a way to reproduce Codeship's CI environment locally when not using Codeship's Docker support?
We don't share the build VMs for our classic infrastructure publicly at the moment. I'll bring this up with our engineering team, but I can't make any promises right now on what they'll decide.
We do however have a SSH debug feature available, that will allow you to access a build VM with your code cloned via SSH and run & tweak commands that way. See https://codeship.com/documentation/continuous-integration/ssh-access/ for more information.

Certificate error while running boot2Docker

I am using boot2docker which creates a VM of linux on OSX and allows you to use regular docker.
I am following thistutorial to try and use google's recent "deep dreams" image software. There is a python implementation on github that was released and become very popular. Not knowing python or the frameworks it comes with I decided to look for a simpler way to run it. So this guy made a container in docker to run it and explains how to set it up in that link. Unfortunately I am running into a bug where it denies the IP certificate. AS you can see..
As recommended by Sabin, this is what i get when i run the curl command.

Resources