ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Swiss knife for Go debugging with VSCode - Ivan Pesenti

GoLab

GoLab 2024

golang

Discovery

Ivan Pesenti

Автор: GoLab conference

Загружено: 2024-12-12

Просмотров: 353

Описание: 🔔 FOLLOW GOLAB CHANNEL 🔔

ABSTRACT:
Being able to debug your code in the IDE should be an easy process. If you ever struggled with debugging Go code in Visual Studio Code, this session is definitely for you. We'll take a look at how to debug several kinds of projects by only tweaking settings in the dreaded "launch.json" file. You'll discover how many options and customizations you can apply to this file to leverage your debugging experience. Finally, we briefly touch on the key features of the Delve debugger.

DESCRIPTION:
One of the most important things when we're writing code is the ability to debug it. Many IDEs have an integrated debugger that can smoothen our coding experience. The debugger for the Go source code is called Delve. It's tightly integrated with VSCode and the Go extension. As you might know, the debugger allows us to step through our code, focus on specific sections that may deserve more attention, inspect variables' values, stack traces, etc.
Sometimes, debugging turns into a hassle. The process supposed to help us becomes an insurmountable obstacle. Sometimes, we abandon the debugging or log directly into the code. Both of the options end up decreasing our productivity as developers.

Thus, this talk aims to provide a working solution to debug Go code in VSCode. I chose this IDE since it's free, highly customizable, performant, and my favorite!
Since we can build different projects, I try to provide you with a working solution for each. The scenarios you're likely to face are (list not exhaustive):
Debug unit tests
Debug integration tests
Debug a package
Attach to an already running process (both locally and remotely)
Debug multiple microservices with the compound configuration

To overcome these challenges, you're requested to tweak settings in the `launch.json` file within the hidden .vscode folder. In this file are listed what are known as profiles. These are selectable in the "Run View" area. Within this file, we have the option to set different values, such as:
environment variables or env file
whether to show global variables' values
which console to use
and many others

Throughout this talk, I share hints on Delve and how to make the most of it. I also touch on some overlooked aspects of VSCode that can make a huge difference in your debugging experience.
Finally, I'll give you some mind-blowing tips and tricks on debugging. If you'd like to improve your debugging skills, please don't miss my session!

This channel is dedicated to the videos of the GoLab conference.
💛 Follow us on X:

/ golab_conf
💜 Follow us on FACEBOOK:

/ golabconf

GoLab is the first Italian international conference on the Go programming language, organized by Develer.
Develer is not just an Italian company projecting and releasing hardware and software solutions for the industrial environment, but is also an ensemble of people sharing their great passion for new technologies and how they can be applied to your everyday life.

🔸 Follow DEVELER on INSTAGRAM:

/ wearedeveler
🔹 Follow DEVELER on FACEBOOK:

/ we.are.develer
🔸 Follow DEVELER on X:

/ develer
🔹 Follow DEVELER on LINKEDIN:

/ 114426
🔸 Follow DEVELER on TELEGRAM: https://t.me/wearedeveler
🔹 Follow DEVELER on TIK TOK:

/ wearedeveler

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Swiss knife for Go debugging with VSCode - Ivan Pesenti

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Beyond table tests - Federico Paolinelli

Beyond table tests - Federico Paolinelli

How to Punch Holes in Network Infrastructure using Go - Wiktor Jurkiewicz

How to Punch Holes in Network Infrastructure using Go - Wiktor Jurkiewicz

Accepting complex inputs with simple code - Roberto Clapis

Accepting complex inputs with simple code - Roberto Clapis

Повторяющийся код и настройки запуска: шаблон небольшого (sic!) проекта на C • Live coding

Повторяющийся код и настройки запуска: шаблон небольшого (sic!) проекта на C • Live coding

Swift vs Rust vs C#: какой язык реально БЛЕЙЗИНГ ФАСТ?!

Swift vs Rust vs C#: какой язык реально БЛЕЙЗИНГ ФАСТ?!

CI/CD — Простым языком на понятном примере

CI/CD — Простым языком на понятном примере

Все, что нужно знать про 1С для старта за 13 минут!

Все, что нужно знать про 1С для старта за 13 минут!

Go ten years ago, Go ten years from now - Daniel Martí (Closing Keynote)

Go ten years ago, Go ten years from now - Daniel Martí (Closing Keynote)

Клещ думал, что он охотник, пока не встретил муравьев!

Клещ думал, что он охотник, пока не встретил муравьев!

Экономика в рецессии. Кризис коснется всех. Резервы закончились — Владислав ЖУКОВСКИЙ

Экономика в рецессии. Кризис коснется всех. Резервы закончились — Владислав ЖУКОВСКИЙ

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]