Neovim: How to Use Java Debugging

  Рет қаралды 10,917

Ivan Byte TV

Ivan Byte TV

Күн бұрын

Let's debug java applications with Neovim quickly and efficiently! In the video, I presented my approach to debugging spring applications in Neovim.
--
Chapters:
0:00 Intro
0:32 Plan
0:53 References
1:15 Install Java Debug
1:42 Plugins
2:31 Add utils.lua file
2:53 Setup JDTLS
3:55 Completion (CMP)
4:12 Spring Boot Runner
5:30 Keymaps - Spring Runner
5:40 Demo - Run Spring Boot
6:53 Keymaps - Navigation in Debug
7:33 Demo - Debug App
8:07 Test Runner
9:03 Keymaps - Test Runner
9:22 Demo - Debug Tests
10:09 Get Values in Debug
10:46 Demo - Get Values in Debug
11:03 Conditional Breakpoint
11:32 REPL
12:02 Telescope DAP
12:36 End
--
Links:
Config from the video: github.com/Nawy/nvim-config-e...
Plugins:
nvim-dap: github.com/mfussenegger/nvim-dap
cmp-dap: github.com/rcarriga/cmp-dap
telescope-dap: github.com/nvim-telescope/tel...
#vim #debug #java #spring #neovim #breakpoint #server #programming #coding #jdtls
#editor #completion #condition #framework #luainit

Пікірлер: 16
@nilsgg
@nilsgg Жыл бұрын
Really useful video! Well done 👍
@tobiasvaldez5206
@tobiasvaldez5206 11 ай бұрын
Thanks!, this was what i was searching for
@rddavies
@rddavies Жыл бұрын
Very impressive!
@eygs493
@eygs493 Ай бұрын
it worked right outt of box, thank you, lol
@Amin-ze2hr
@Amin-ze2hr 9 ай бұрын
Thanks for the video. Do you have any idea how we should set it up for non-springboot projects? (projects that run via war file in tomcat)
@marshzhou7794
@marshzhou7794 Жыл бұрын
it's cool
@orbistabula5922
@orbistabula5922 Жыл бұрын
Привет. Было бы круто увидеть полную настройку nvim под фронтэнд разработку: React, typescript, NodeJS, prettier... 👍👍
@itachicodes2506
@itachicodes2506 2 ай бұрын
Can you do a new 2024 update for Java debugging please
@m3kbeatz
@m3kbeatz 7 ай бұрын
Can u set values in debug mode?
@IvanByteTV
@IvanByteTV 6 ай бұрын
Sure, as in a normal debug mode
@micro4el224
@micro4el224 Жыл бұрын
java.....
@pedrolobo9835
@pedrolobo9835 Жыл бұрын
Hi, we have good stuff in this video! Can you please test something for me? Try the :lua require'dap'.step_into() command at some System.out.println() line. What happened?
@IvanByteTV
@IvanByteTV Жыл бұрын
The debugger will show nothing, to continue press F5(dap.continue) This happens because System.out.println is inside of compiled JDK class. In IDEs, such as IntelliJ Idea (I've used for 8 years) there is a decompiler for that reason. Actually, I think it's possible to configure www.benf.org/other/cfr/ Or download sources and configure them for your debug session. But it's a quite rare case in my practice, for the deep debugging I would opt for IntelliJ Idea (even with the free community version you can use decompiler).
@pedrolobo9835
@pedrolobo9835 Жыл бұрын
@@IvanByteTV Thanks for the reply, but I'm not sure about that, because we can use :lua vim.lsp.buf.definition() to see what is inside the System.out.println() without decompilers.
@IvanByteTV
@IvanByteTV Жыл бұрын
@@pedrolobo9835 Oh You're right. If there are sources, it's possible to check definitions. Do you have any ideas to share on how to implement it?
@pedrolobo9835
@pedrolobo9835 Жыл бұрын
@@IvanByteTV I left a message on your repo about this.
Vim As Your Editor - Introduction
12:24
ThePrimeagen
Рет қаралды 760 М.
Tmux has forever changed the way I write code.
13:30
Dreams of Code
Рет қаралды 888 М.
Don't eat centipede 🪱😂
00:19
Nadir Sailov
Рет қаралды 22 МЛН
Configure Neovim for Java Development
15:11
Andrew Courter
Рет қаралды 9 М.
I FINALLY configured nvim-dap to debug Node.js apps!!!
16:56
Lazar Nikolov
Рет қаралды 9 М.
Automatically Execute *Anything* in Nvim
11:03
TJ DeVries
Рет қаралды 65 М.
NVChad - Turn Neovim Into An Awesome IDE
14:48
Mental Outlaw
Рет қаралды 196 М.
DEBUG in Neovim. Like a BOSS.
9:44
DevOps Toolbox
Рет қаралды 43 М.
Zero to IDE with LazyVim
16:59
Elijah Manor
Рет қаралды 255 М.
Why Neovim nerds are so obsessed with the terminal
6:44
Joshua Morony
Рет қаралды 71 М.
How to Vim in 2023: Tips and Tricks
15:53
ThePrimeagen
Рет қаралды 385 М.
Why I think IDEs suck
2:58
typecraft
Рет қаралды 11 М.
I tried 10 code editors
10:28
Fireship
Рет қаралды 2,8 МЛН
it takes two to tango 💃🏻🕺🏻
0:18
Zach King
Рет қаралды 20 МЛН
Женщина-полицейский СПАСЛА пациентку от МЕДСЕСТРЫ 😱 #shorts
1:00
Лаборатория Разрушителя
Рет қаралды 20 МЛН
Этот подарок шокировал всех! 😲
0:30
Pacan233
Рет қаралды 2,2 МЛН
Como ela fez isso? 😲
0:12
Los Wagners
Рет қаралды 11 МЛН
Разоблачение лайфхака с расческой
0:26
Логан
Рет қаралды 4,2 МЛН
Самый КРЕПКИЙ ученик!👍
1:00
Petr Savkin
Рет қаралды 4,3 МЛН