Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Using emacs dape to debug software with DAP protocol (reupload)

  • Chmouel Boudjnah (Red Hat)
  • 2024-12-09
  • 1162
Using emacs dape to debug software with DAP protocol (reupload)
  • ok logo

Скачать Using emacs dape to debug software with DAP protocol (reupload) бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Using emacs dape to debug software with DAP protocol (reupload) или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

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

Cкачать музыку Using emacs dape to debug software with DAP protocol (reupload) бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Using emacs dape to debug software with DAP protocol (reupload)

This is a reupload with a better sound of a video i have made previously.

A little demo on how I debug my Go software with dape on emacs, the config is here:

https://gist.github.com/chmouel/f3021...

dape-mode

https://github.com/svaante/dape/

Transcript

*Introduction*

Today, I'll demonstrate a useful Emacs mode: DAP mode. This mode allows you to integrate with the Debug Adapter Protocol (DAP) and debug your code directly within Emacs.

*DAP Mode vs. LSP DAP Mode*

There are two main DAP modes for Emacs: the newer DAP mode and the older LSP DAP mode. DAP mode is more closely aligned with Emacs Lisp primitives, making it more flexible and powerful. However, LSP DAP mode is simpler to set up and works well with LSP servers.

*Debugging a Go Project*

To illustrate, I'll use a Go project as an example. First, I'll set a breakpoint using a custom function that highlights the line for better visibility. This function is a workaround for a known issue with breakpoint markers being hidden.

*Starting the Debugger*

I'll start the debugging session using a configuration file that specifies the debugger (dlv in this case), the program to debug, and other relevant settings. Once the debugger starts, you'll see the current scope, variables, and logs in the Emacs window.

*Interacting with the Debugger*

You can interact with the debugger using various commands:

*Stepping:* Step over, into, or out of functions.
*Breakpoints:* Set, clear, and condition breakpoints.
*Variables:* Inspect variable values.
*Expressions:* Evaluate expressions.

*Integration with LSP*

DAP mode integrates seamlessly with LSP, providing features like:

*Code completion:* Suggest variable and function names.
*Go-to-definition:* Jump to the definition of a symbol.
*Hover documentation:* Display documentation for symbols.

*Debugging Tests*

To debug tests, I use a custom function that automatically sets up the debugger for the current test function. This function leverages the `go-test` library to identify the test and start the debugger with the appropriate arguments.

*Conclusion*

DAP mode is a powerful tool for debugging your code within Emacs. By leveraging its integration with LSP and other Emacs features, you can significantly improve your debugging workflow.


---
#emacs #coding #golang

Комментарии

Информация по комментариям в разработке

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

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

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