{"id":1732,"date":"2025-03-26T10:34:09","date_gmt":"2025-03-26T10:34:09","guid":{"rendered":"https:\/\/nextcore.vn\/?p=1732"},"modified":"2025-03-26T10:34:09","modified_gmt":"2025-03-26T10:34:09","slug":"huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang","status":"publish","type":"post","link":"https:\/\/nextcore.vn\/en\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn c\u00e1ch &#8220;Debug SpringBoot v\u1edbi Visual code&#8221; m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng"},"content":{"rendered":"<p>Debugging l\u00e0 m\u1ed9t k\u1ef9 n\u0103ng quan tr\u1ecdng \u0111\u1ed1i v\u1edbi b\u1ea5t k\u1ef3 l\u1eadp tr\u00ecnh vi\u00ean n\u00e0o, \u0111\u1eb7c bi\u1ec7t khi l\u00e0m vi\u1ec7c v\u1edbi c\u00e1c \u1ee9ng d\u1ee5ng ph\u1ee9c t\u1ea1p nh\u01b0 <strong>Spring Boot<\/strong>. Trong khi nhi\u1ec1u l\u1eadp tr\u00ecnh vi\u00ean quen thu\u1ed9c v\u1edbi IntelliJ IDEA ho\u1eb7c Eclipse, <strong>Visual Studio Code<\/strong> (VS Code) l\u1ea1i cung c\u1ea5p m\u1ed9t m\u00f4i tr\u01b0\u1eddng nh\u1eb9 nh\u00e0ng, linh ho\u1ea1t, v\u00e0 m\u1ea1nh m\u1ebd \u0111\u1ec3 ph\u00e1t tri\u1ec3n v\u00e0 g\u1ee1 l\u1ed7i c\u00e1c \u1ee9ng d\u1ee5ng Spring Boot.<\/p>\n<h2>1. C\u00e0i \u0110\u1eb7t Visual Studio Code<\/h2>\n<p>\u0110\u1ea7u ti\u00ean ch\u00fang ta ph\u1ea3i c\u00e0i \u0111\u1eb7t Visual code v\u1ec1 m\u00e1y, m\u1edf tr\u00ecnh duy\u1ec7t v\u00e0 truy c\u1eadp \u0111\u01b0\u1eddng d\u1eabn sau: <a href=\"https:\/\/code.visualstudio.com\/download\">https:\/\/code.visualstudio.com\/download<\/a><\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-1742 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/download_visual_code-800x392-1.png\" alt=\"\" width=\"800\" height=\"392\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/download_visual_code-800x392-1.png 800w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/download_visual_code-800x392-1-768x376.png 768w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/download_visual_code-800x392-1-18x9.png 18w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/download_visual_code-800x392-1-600x294.png 600w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>T\u1ea3i phi\u00ean b\u1ea3n d\u00e0nh cho h\u1ec7 \u0111i\u1ec1u h\u00e0nh c\u1ee7a b\u1ea1n (Windows, macOS, ho\u1eb7c Linux). Sau khi t\u1ea3i v\u1ec1 ch\u1ea1y file c\u00e0i \u0111\u1eb7t v\u00e0 l\u00e0m theo c\u00e1c h\u01b0\u1edbng d\u1eabn.<\/p>\n<p>Sau khi c\u00e0i \u0111\u1eb7t th\u00e0nh c\u00f4ng ta s\u1ebd c\u00f3 th\u1ec3 kh\u1edfi \u0111\u1ed9ng \u0111\u01b0\u1ee3c v\u00e0 c\u00f3 giao di\u1ec7n Visual code nh\u01b0 sau:<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-1757 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/visual_ui-1-711x400-1.png\" alt=\"\" width=\"711\" height=\"400\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/visual_ui-1-711x400-1.png 711w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/visual_ui-1-711x400-1-18x10.png 18w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/visual_ui-1-711x400-1-600x338.png 600w\" sizes=\"(max-width: 711px) 100vw, 711px\" \/><\/p>\n<h2>2. C\u00e0i \u0110\u1eb7t Java Coding Pack<\/h2>\n<p>Ti\u1ebfp theo ch\u00fang ta s\u1ebd ph\u1ea3i c\u00e0i \u0111\u1eb7t g\u00f3i\u00a0Java Coding Pack gi\u00fap b\u1ea1n nhanh ch\u00f3ng thi\u1ebft l\u1eadp m\u00f4i tr\u01b0\u1eddng ph\u00e1t tri\u1ec3n Java m\u00e0 kh\u00f4ng m\u1ea5t th\u1eddi gian c\u1ea5u h\u00ecnh th\u1ee7 c\u00f4ng. G\u00f3i n\u00e0y t\u00edch h\u1ee3p s\u1eb5n Visual Studio Code, JDK, v\u00e0 c\u00e1c ti\u1ec7n \u00edch Java, gi\u00fap b\u1ea1n b\u1eaft \u0111\u1ea7u vi\u1ebft, ch\u1ea1y, v\u00e0 debug \u1ee9ng d\u1ee5ng ngay l\u1eadp t\u1ee9c, ti\u1ebft ki\u1ec7m th\u1eddi gian v\u00e0 tr\u00e1nh c\u00e1c l\u1ed7i c\u00e0i \u0111\u1eb7t ph\u1ee9c t\u1ea1p.<\/p>\n<p>Truy c\u1eadp \u0111\u01b0\u1eddng d\u1eabn <a href=\"https:\/\/code.visualstudio.com\/docs\/languages\/java\">https:\/\/code.visualstudio.com\/docs\/languages\/java<\/a> ta s\u1ebd l\u01b0\u1edbt xu\u1ed1ng n\u1ed9i dung Install Visual Studio Code for Java ta s\u1ebd c\u00f3 <strong>2 l\u1ef1a ch\u1ecdn<\/strong> \u0111\u1ec3 c\u00e0i \u0111\u1eb7t g\u00f3i nh\u01b0 sau, t\u00f9y v\u00e0o h\u1ec7 \u0111i\u1ec1u h\u00e0nh m\u00e0 b\u1ea1n ch\u1ecdn \u0111\u1ec3 download file c\u00e0i \u0111\u1eb7t:<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-1741 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/download_javacodingpack-1-800x393-1.png\" alt=\"\" width=\"800\" height=\"393\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/download_javacodingpack-1-800x393-1.png 800w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/download_javacodingpack-1-800x393-1-768x377.png 768w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/download_javacodingpack-1-800x393-1-18x9.png 18w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/download_javacodingpack-1-800x393-1-600x295.png 600w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Sau khi t\u1ea3i file c\u00e0i \u0111\u1eb7t ta th\u1ef1c hi\u1ec7n ch\u1ea1y file \u0111\u1ec3 c\u00e0i \u0111\u1eb7t g\u00f3i Java coding pack:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1745 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/javacodingexe-1-526x400-1.png\" alt=\"\" width=\"526\" height=\"400\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/javacodingexe-1-526x400-1.png 526w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/javacodingexe-1-526x400-1-16x12.png 16w\" sizes=\"(max-width: 526px) 100vw, 526px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Ti\u1ebfp t\u1ee5c c\u00e1c b\u01b0\u1edbc c\u00e0i \u0111\u1eb7t Java coding pack theo h\u01b0\u1edbng d\u1eabn, \u0111\u1ec3 ki\u1ec3m tra \u0111\u00e3 c\u00e0i th\u00e0nh c\u00f4ng ch\u01b0a ta s\u1ebd m\u1edf Visual Studio Code v\u00e0 ki\u1ec3m tra trong <strong>Extensions<\/strong> (Ctrl + Shift + X) xem c\u00e1c ti\u1ec7n \u00edch Java \u0111\u00e3 \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t ch\u01b0a:<\/p>\n<ul>\n<li><strong>Language Support for Java (Red Hat).<\/strong><\/li>\n<li><strong>Debugger for Java.<\/strong><\/li>\n<li><strong>Java Test Runner.<\/strong><\/li>\n<li><strong>Maven for Java.<\/strong><\/li>\n<\/ul>\n<p>V\u00ed d\u1ee5 nh\u01b0 sau Debugger for Java \u0111\u00e3 \u0111\u01b0\u1ee3c c\u00e0i th\u00e0nh c\u00f4ng:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1733 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/java_debug-711x400-1.png\" alt=\"\" width=\"711\" height=\"400\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/java_debug-711x400-1.png 711w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/java_debug-711x400-1-18x10.png 18w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/java_debug-711x400-1-600x338.png 600w\" sizes=\"(max-width: 711px) 100vw, 711px\" \/><\/p>\n<h2>3. C\u00e0i \u0110\u1eb7t Extension Spring Boot Extension Pack<\/h2>\n<p>\u0110\u1ec3 h\u1ed7 tr\u1ee3 l\u00e0m vi\u1ec7c v\u1edbi Spring Boot, b\u1ea1n c\u1ea7n c\u00e0i \u0111\u1eb7t <strong>Spring Boot Extension Pack<\/strong>. B\u1ed9 ti\u1ec7n \u00edch n\u00e0y cung c\u1ea5p c\u00e1c t\u00ednh n\u0103ng nh\u01b0:<\/p>\n<ul>\n<li>T\u1ea1o, c\u1ea5u h\u00ecnh v\u00e0 ch\u1ea1y \u1ee9ng d\u1ee5ng Spring Boot.<\/li>\n<li>Debug Spring Boot tr\u1ef1c ti\u1ebfp trong VS Code.<\/li>\n<li>Spring Boot Dashboard \u0111\u1ec3 qu\u1ea3n l\u00fd c\u00e1c d\u1ef1 \u00e1n Spring Boot.<\/li>\n<\/ul>\n<p>B\u00e2y gi\u1edd ch\u00fang ta s\u1ebd m\u1edf Visual code v\u00e0 m\u1edf <strong>Extensions Marketplace\u00a0<\/strong>t\u00ecm ki\u1ebfm t\u1eeb kh\u00f3a <strong>Spring Boot Extension Pack<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1753 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/spring_boot_extention_pack-711x400-1.png\" alt=\"\" width=\"711\" height=\"400\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/spring_boot_extention_pack-711x400-1.png 711w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/spring_boot_extention_pack-711x400-1-18x10.png 18w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/spring_boot_extention_pack-711x400-1-600x338.png 600w\" sizes=\"(max-width: 711px) 100vw, 711px\" \/><\/p>\n<p>Click v\u00e0o <strong>Install<\/strong> \u0111\u1ec3 c\u00e0i extention s\u1ebd m\u1ea5t m\u1ed9t \u00edt th\u1eddi gian \u0111\u1ec3 c\u00e0i \u0111\u1eb7t. \u1edf h\u00ecnh tr\u00ean l\u00e0 ta \u0111\u00e3 c\u00e0i th\u00e0nh c\u00f4ng.<\/p>\n<h2>4. T\u1ea1o M\u1ed9t Project Spring Boot \u0110\u01a1n Gi\u1ea3n<\/h2>\n<p>Sau khi c\u00e0i \u0111\u1eb7t c\u00e1c c\u00f4ng c\u1ee5, ch\u00fang ta s\u1ebd t\u1ea1o m\u1ed9t d\u1ef1 \u00e1n Spring Boot v\u00e0 th\u1ef1c hi\u1ec7n debug.<\/p>\n<p>Ta s\u1ebd t\u1ea1o m\u1ed9t project \u0111\u01a1n gi\u1ea3n \u0111\u1ec3 c\u00f3 th\u1ec3 debug cho project n\u00e0y, m\u1edf Visual code g\u00f5 <strong>&gt; create Java project<\/strong> ch\u1ecdn <strong>option Create Java project<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1736 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/creaete_java_project-711x400-1.png\" alt=\"\" width=\"711\" height=\"400\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/creaete_java_project-711x400-1.png 711w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/creaete_java_project-711x400-1-18x10.png 18w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/creaete_java_project-711x400-1-600x338.png 600w\" sizes=\"(max-width: 711px) 100vw, 711px\" \/><\/p>\n<p>Ti\u1ebfp t\u1ee5c chon option <strong>Spring boot<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1750 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/option_springboot-711x400-1.png\" alt=\"\" width=\"711\" height=\"400\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/option_springboot-711x400-1.png 711w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/option_springboot-711x400-1-18x10.png 18w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/option_springboot-711x400-1-600x338.png 600w\" sizes=\"(max-width: 711px) 100vw, 711px\" \/><\/p>\n<p>B\u00e2y gi\u1edd \u1edf \u0111\u00e2y ta s\u1ebd c\u00f3 2 option \u0111\u1ec3 t\u1ea1o m\u1ed9t project <strong>Maven<\/strong> ho\u1eb7c <strong>Gradle<\/strong> t\u00f9y v\u00e0o nhu c\u1ea7u c\u1ee7a b\u1ea1n ch\u1ecdn 1 trong 2 nh\u01b0ng \u1edf \u0111\u00e2y t\u00f4i s\u1ebd ch\u1ecdn <strong>Maven<\/strong> cho project n\u00e0y.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1755 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/type_project-711x400-1.png\" alt=\"\" width=\"711\" height=\"400\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/type_project-711x400-1.png 711w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/type_project-711x400-1-18x10.png 18w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/type_project-711x400-1-600x338.png 600w\" sizes=\"(max-width: 711px) 100vw, 711px\" \/><\/p>\n<p>Ti\u1ebfp t\u1ee5c ch\u1ecdn version cho spring boot:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1756 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/version_spring-711x400-1.png\" alt=\"\" width=\"711\" height=\"400\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/version_spring-711x400-1.png 711w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/version_spring-711x400-1-18x10.png 18w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/version_spring-711x400-1-600x338.png 600w\" sizes=\"(max-width: 711px) 100vw, 711px\" \/><\/p>\n<p>Ch\u1ecdn Java:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1744 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/java-711x400-1.png\" alt=\"\" width=\"711\" height=\"400\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/java-711x400-1.png 711w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/java-711x400-1-18x10.png 18w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/java-711x400-1-600x338.png 600w\" sizes=\"(max-width: 711px) 100vw, 711px\" \/><\/p>\n<p>V\u00e0 gi\u1edd ta s\u1ebd \u0111\u1eb7t l\u1ea1i name c\u1ee7a package c\u1ee7a project \u1edf \u0111\u00e2y:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1748 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/name_project-711x400-1.png\" alt=\"\" width=\"711\" height=\"400\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/name_project-711x400-1.png 711w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/name_project-711x400-1-18x10.png 18w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/name_project-711x400-1-600x338.png 600w\" sizes=\"(max-width: 711px) 100vw, 711px\" \/><\/p>\n<p>Ti\u1ebfp t\u1ee5c ta b\u00e2y gi\u1edd s\u1ebd \u0111\u1eb7t name c\u1ee7a project =&gt; lo\u1ea1i file khi \u0111\u00f3ng g\u00f3i \u1ee9ng d\u1ee5ng =&gt; ch\u1ecdn phi\u00ean b\u1ea3n JDK =&gt; c\u00e1c th\u01b0 vi\u1ec7n c\u1ea7n thi\u1ebft cho project theo c\u00e1c b\u01b0\u1edbc l\u1ea7n l\u01b0\u1ee3t sau \u0111\u00e2y:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1747 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/name_project-1-711x400-1.png\" alt=\"\" width=\"711\" height=\"400\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/name_project-1-711x400-1.png 711w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/name_project-1-711x400-1-18x10.png 18w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/name_project-1-711x400-1-600x338.png 600w\" sizes=\"(max-width: 711px) 100vw, 711px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1754 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/type_file-711x400-1.png\" alt=\"\" width=\"711\" height=\"400\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/type_file-711x400-1.png 711w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/type_file-711x400-1-18x10.png 18w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/type_file-711x400-1-600x338.png 600w\" sizes=\"(max-width: 711px) 100vw, 711px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1746 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/jdk_version-711x400-1.png\" alt=\"\" width=\"711\" height=\"400\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/jdk_version-711x400-1.png 711w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/jdk_version-711x400-1-18x10.png 18w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/jdk_version-711x400-1-600x338.png 600w\" sizes=\"(max-width: 711px) 100vw, 711px\" \/><\/p>\n<p>Sau khi th\u1ef1c hi\u1ec7n t\u1ea5t c\u1ea3 c\u00e1c b\u01b0\u1edbc tr\u00ean ta s\u1ebd \u0111\u1ebfn b\u01b0\u1edbc ch\u1ecdn folder \u0111\u1ec3 l\u01b0u tr\u1eef project:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1749 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/noi_luu-tru_project-1-711x400-1.png\" alt=\"\" width=\"711\" height=\"400\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/noi_luu-tru_project-1-711x400-1.png 711w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/noi_luu-tru_project-1-711x400-1-18x10.png 18w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/noi_luu-tru_project-1-711x400-1-600x338.png 600w\" sizes=\"(max-width: 711px) 100vw, 711px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>V\u1edbi t\u1ea5t c\u1ea3 c\u00e1c b\u01b0\u1edbc tr\u00ean ta \u0111\u00e3 th\u00e0nh c\u00f4ng t\u1ea1o m\u1ed9t project Spring boot b\u00e2y gi\u1edd ta c\u00f9ng nhau th\u01b0c hi\u1ec7n debug tr\u00ean project n\u00e0y nh\u00e9.<\/p>\n<h2>5. Debug \u1ee8ng D\u1ee5ng Spring Boot v\u1edbi Visual Code<\/h2>\n<p>Hi\u1ec7n t\u1ea1i \u1edf \u0111\u00e2y t\u00f4i \u0111\u00e3 t\u1ea1o m\u1ed9t Controller t\u00ean <strong>HelloWorldController<\/strong> \u0111\u1ec3 tr\u1ea3 v\u1ec1 m\u1ed9t c\u00e2u message \u0111\u01a1n gi\u1ea3n <strong>&#8220;Hello world !!!&#8221;\u00a0<\/strong>nh\u01b0 sau:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1743 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/helloworld-711x400-1.png\" alt=\"\" width=\"711\" height=\"400\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/helloworld-711x400-1.png 711w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/helloworld-711x400-1-18x10.png 18w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/helloworld-711x400-1-600x338.png 600w\" sizes=\"(max-width: 711px) 100vw, 711px\" \/><\/p>\n<p>B\u00e2y gi\u1edd \u0111\u1ec3 debug trong controller n\u00e0y ta s\u1ebd \u0111\u1eb7t nh\u1eefng <strong>breakpoint<\/strong> \u1edf nh\u1eefng d\u00f2ng m\u00e0 ta mu\u1ed1n debug m\u1ed9t c\u00e1ch \u0111\u01a1n gi\u1ea3n b\u1eb1ng c\u00e1ch <strong>nh\u1ea5p v\u00e0o l\u1ec1 b\u00ean tr\u00e1i (g\u1ea7n s\u1ed1 d\u00f2ng) \u0111\u1ec3 th\u1ef1c hi\u1ec7n \u0111\u1eb7t breakpoint \u1edf d\u00f2ng \u0111\u00f3 <\/strong>(\u1ede \u0111\u00e2y t\u00f4i th\u1ef1c hi\u1ec7n \u0111\u1eb7t breakpoint cho d\u00f2ng 10 v\u00e0 11):<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1735 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/breakpoint-711x400-1.png\" alt=\"\" width=\"711\" height=\"400\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/breakpoint-711x400-1.png 711w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/breakpoint-711x400-1-18x10.png 18w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/breakpoint-711x400-1-600x338.png 600w\" sizes=\"(max-width: 711px) 100vw, 711px\" \/><\/p>\n<p>B\u00e2y gi\u1edd \u0111\u1ec3 debug \u1ee9ng d\u1ee5ng ta ch\u1ea1y ch\u1ebf \u0111\u1ed9 debug b\u1eb1ng c\u00e1ch v\u00e0o file ch\u1ee9a h\u00e0m main c\u1ee7a \u1ee9ng d\u1ee5ng ch\u1ecdn n\u00fat <strong>debug<\/strong> n\u1eb1m tr\u00ean h\u00e0m <strong>main<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1740 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/debugmain-711x400-1.png\" alt=\"\" width=\"711\" height=\"400\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/debugmain-711x400-1.png 711w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/debugmain-711x400-1-18x10.png 18w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/debugmain-711x400-1-600x338.png 600w\" sizes=\"(max-width: 711px) 100vw, 711px\" \/><\/p>\n<p>Ho\u1eb7c m\u1ed9t c\u00e1ch \u0111\u01a1n gi\u1ea3n kh\u00e1c <strong>nh\u1ea5n chu\u1ed9c ph\u1ea3i<\/strong> =&gt; ch\u1ecdn <strong>Debug java<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1739 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/debug_right_click-711x400-1.png\" alt=\"\" width=\"711\" height=\"400\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/debug_right_click-711x400-1.png 711w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/debug_right_click-711x400-1-18x10.png 18w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/debug_right_click-711x400-1-600x338.png 600w\" sizes=\"(max-width: 711px) 100vw, 711px\" \/><\/p>\n<p>B\u00e2y gi\u1edd \u1edf \u0111\u00e2y t\u00f4i s\u1ebd d\u00f9ng postman \u0111\u1ec3 th\u1ef1c hi\u1ec7n call api \/hello tr\u00ean project \u0111\u1ec3 xem k\u1ebft qu\u1ea3 khi debug tr\u00ean visual code:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1751 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/postman-662x400-1.png\" alt=\"\" width=\"662\" height=\"400\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/postman-662x400-1.png 662w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/postman-662x400-1-18x12.png 18w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/postman-662x400-1-600x363.png 600w\" sizes=\"(max-width: 662px) 100vw, 662px\" \/><\/p>\n<p>V\u00e0 gi\u1edd c\u00f9ng quay l\u1ea1i visual code \u0111\u1ec3 xem k\u1ebft qu\u1ea3 n\u00e0o:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1737 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/debug_result-1-711x400-1.png\" alt=\"\" width=\"711\" height=\"400\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/debug_result-1-711x400-1.png 711w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/debug_result-1-711x400-1-18x10.png 18w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/debug_result-1-711x400-1-600x338.png 600w\" sizes=\"(max-width: 711px) 100vw, 711px\" \/><\/p>\n<p>Nh\u01b0 b\u1ea1n th\u1ea5y \u1edf \u1ea3nh tr\u00ean ta \u0111\u00e3 th\u00e0nh c\u00f4ng debug, ch\u01b0\u01a1ng tr\u00ecnh \u0111\u00e3 \u0111\u01b0\u1ee3c d\u1eebng \u1edf d\u00f2ng 10 n\u01a1i ta \u0111\u00e3 \u0111\u1eb7t breakpoint, b\u00e2y gi\u1edd t\u00f4i s\u1ebd gi\u1edbi thi\u1ec7u nh\u1eefng th\u00e0nh ph\u1ea7n tr\u00ean giao di\u1ec7n \u0111\u1ec3 debug \u1ee9ng d\u1ee5ng:<\/p>\n<p>\u1ede ph\u00eda g\u00f3c tr\u00ean m\u00e0n h\u00ecnh ta s\u1ebd c\u00f3 nh\u1eefng n\u00fat \u0111\u1ec3 th\u1ef1c hi\u1ec7n c\u00e1c thao t\u00e1c debug:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1738 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/debug_result-2.png\" alt=\"\" width=\"714\" height=\"187\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/debug_result-2.png 714w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/debug_result-2-18x5.png 18w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/debug_result-2-600x157.png 600w\" sizes=\"(max-width: 714px) 100vw, 714px\" \/><\/p>\n<p>Ta s\u1ebd c\u00f3 nh\u1eefng n\u00fat \u0111\u1ec3 thao t\u00e1c trong qu\u00e1 tr\u00ecnh debug nh\u01b0 sau v\u00e0 t\u00f4i s\u1ebd g\u1edbi thi\u1ec7u c\u00f4ng d\u1ee5ng t\u1eebng n\u00fat \u1edf \u0111\u00e2y:<\/p>\n<ul>\n<li><strong>Continue (F5):<\/strong> Ti\u1ebfp t\u1ee5c th\u1ef1c thi ch\u01b0\u01a1ng tr\u00ecnh cho \u0111\u1ebfn khi g\u1eb7p breakpoint ti\u1ebfp theo ho\u1eb7c k\u1ebft th\u00fac.<\/li>\n<li><strong>Step Over (F10):<\/strong> Di chuy\u1ec3n qua m\u1ed9t d\u00f2ng m\u00e3 m\u00e0 kh\u00f4ng \u0111i v\u00e0o c\u00e1c h\u00e0m g\u1ecdi trong d\u00f2ng \u0111\u00f3 (b\u1ecf qua h\u00e0m con).<\/li>\n<li><strong>Step Into (F11):<\/strong> V\u00e0o b\u00ean trong m\u1ed9t h\u00e0m ho\u1eb7c ph\u01b0\u01a1ng th\u1ee9c \u0111\u01b0\u1ee3c g\u1ecdi, gi\u00fap b\u1ea1n theo d\u00f5i chi ti\u1ebft h\u01a1n.<\/li>\n<li><strong>Step Out (Shift + F11):<\/strong> Tho\u00e1t kh\u1ecfi h\u00e0m hi\u1ec7n t\u1ea1i v\u00e0 quay l\u1ea1i h\u00e0m g\u1ecdi n\u00f3.<\/li>\n<li><strong>Restart (Ctrl + Shift + F5):<\/strong> Kh\u1edfi \u0111\u1ed9ng l\u1ea1i phi\u00ean debug t\u1eeb \u0111\u1ea7u, gi\u00fap b\u1ea1n ki\u1ec3m tra l\u1ea1i m\u00e3 t\u1eeb \u0111\u1ea7u.<\/li>\n<li><strong>Stop (Shift + F5):<\/strong> D\u1eebng ho\u00e0n to\u00e0n qu\u00e1 tr\u00ecnh debug v\u00e0 k\u1ebft th\u00fac phi\u00ean l\u00e0m vi\u1ec7c.<\/li>\n<li><strong>Hot Code Replace:<\/strong> C\u1eadp nh\u1eadt m\u00e3 ngu\u1ed3n trong khi ch\u01b0\u01a1ng tr\u00ecnh \u0111ang ch\u1ea1y m\u00e0 kh\u00f4ng c\u1ea7n d\u1eebng \u1ee9ng d\u1ee5ng, gi\u00fap b\u1ea1n th\u1eed nghi\u1ec7m nhanh c\u00e1c thay \u0111\u1ed5i m\u00e0 kh\u00f4ng ph\u1ea3i kh\u1edfi \u0111\u1ed9ng l\u1ea1i to\u00e0n b\u1ed9 \u1ee9ng d\u1ee5ng.<\/li>\n<\/ul>\n<p>V\u00e0 gi\u1edd \u1edf b\u00ean g\u00f3c ph\u1ea3i m\u00e0n h\u00ecnh ta s\u1ebd c\u00f3 Variables, Watch, Call Stack, Breakpoints nh\u1eefng th\u00e0nh ph\u1ea7n quan tr\u1ecdng \u0111\u1ec3 ta c\u00f3 th\u1ec3 xem th\u00f4ng tin debug:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1752 aligncenter\" src=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/right_screen-177x400-1.png\" alt=\"\" width=\"177\" height=\"400\" srcset=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/right_screen-177x400-1.png 177w, https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/right_screen-177x400-1-5x12.png 5w\" sizes=\"(max-width: 177px) 100vw, 177px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Nh\u01b0 v\u1eady l\u00e0 ch\u00fang ta \u0111\u00e3 ho\u00e0n th\u00e0nh vi\u1ec7c <strong>debug m\u1ed9t project Spring boot java trong Visual studio code\u00a0<\/strong>t\u1eeb A \u0111\u1ebfn Z, hi v\u1ecdng b\u00e0i vi\u1ebft n\u00e0y h\u1eefu \u00edch. C\u1ea3m \u01a1n c\u00e1c b\u1ea1n \u0111\u00e3 xem.<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Debugging l\u00e0 m\u1ed9t k\u1ef9 n\u0103ng quan tr\u1ecdng \u0111\u1ed1i v\u1edbi b\u1ea5t k\u1ef3 l\u1eadp tr\u00ecnh vi\u00ean n\u00e0o, \u0111\u1eb7c bi\u1ec7t khi l\u00e0m vi\u1ec7c v\u1edbi c\u00e1c \u1ee9ng d\u1ee5ng ph\u1ee9c t\u1ea1p nh\u01b0 Spring Boot. Trong khi nhi\u1ec1u l\u1eadp tr\u00ecnh vi\u00ean quen thu\u1ed9c v\u1edbi IntelliJ IDEA ho\u1eb7c Eclipse, Visual Studio Code (VS Code) l\u1ea1i cung c\u1ea5p m\u1ed9t m\u00f4i tr\u01b0\u1eddng nh\u1eb9 nh\u00e0ng,&#8230;<\/p>","protected":false},"author":1,"featured_media":1733,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"danh-muc-dich-vu":[],"class_list":["post-1732","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kien-thuc"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>H\u01b0\u1edbng d\u1eabn c\u00e1ch &quot;Debug SpringBoot v\u1edbi Visual code&quot; m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng | Nextcore<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/nextcore.vn\/en\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"H\u01b0\u1edbng d\u1eabn c\u00e1ch &quot;Debug SpringBoot v\u1edbi Visual code&quot; m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng | Nextcore\" \/>\n<meta property=\"og:description\" content=\"Debugging l\u00e0 m\u1ed9t k\u1ef9 n\u0103ng quan tr\u1ecdng \u0111\u1ed1i v\u1edbi b\u1ea5t k\u1ef3 l\u1eadp tr\u00ecnh vi\u00ean n\u00e0o, \u0111\u1eb7c bi\u1ec7t khi l\u00e0m vi\u1ec7c v\u1edbi c\u00e1c \u1ee9ng d\u1ee5ng ph\u1ee9c t\u1ea1p nh\u01b0 Spring Boot. Trong khi nhi\u1ec1u l\u1eadp tr\u00ecnh vi\u00ean quen thu\u1ed9c v\u1edbi IntelliJ IDEA ho\u1eb7c Eclipse, Visual Studio Code (VS Code) l\u1ea1i cung c\u1ea5p m\u1ed9t m\u00f4i tr\u01b0\u1eddng nh\u1eb9 nh\u00e0ng,...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/nextcore.vn\/en\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/\" \/>\n<meta property=\"og:site_name\" content=\"Nextcore\" \/>\n<meta property=\"article:published_time\" content=\"2025-03-26T10:34:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/java_debug-711x400-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"711\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/nextcore.vn\/#\/schema\/person\/9ac53e94bbd0577e16ba2c55bddfc49d\"},\"headline\":\"H\u01b0\u1edbng d\u1eabn c\u00e1ch &#8220;Debug SpringBoot v\u1edbi Visual code&#8221; m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng\",\"datePublished\":\"2025-03-26T10:34:09+00:00\",\"dateModified\":\"2025-03-26T10:34:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/\"},\"wordCount\":1585,\"publisher\":{\"@id\":\"https:\/\/nextcore.vn\/#organization\"},\"image\":{\"@id\":\"https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/java_debug-711x400-1.png\",\"articleSection\":[\"Ki\u1ebfn th\u1ee9c\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/\",\"url\":\"https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/\",\"name\":\"H\u01b0\u1edbng d\u1eabn c\u00e1ch \\\"Debug SpringBoot v\u1edbi Visual code\\\" m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng | Nextcore\",\"isPartOf\":{\"@id\":\"https:\/\/nextcore.vn\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/java_debug-711x400-1.png\",\"datePublished\":\"2025-03-26T10:34:09+00:00\",\"dateModified\":\"2025-03-26T10:34:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/#primaryimage\",\"url\":\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/java_debug-711x400-1.png\",\"contentUrl\":\"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/java_debug-711x400-1.png\",\"width\":711,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Trang ch\u1ee7\",\"item\":\"https:\/\/nextcore.vn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"H\u01b0\u1edbng d\u1eabn c\u00e1ch &#8220;Debug SpringBoot v\u1edbi Visual code&#8221; m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/nextcore.vn\/#website\",\"url\":\"https:\/\/nextcore.vn\/\",\"name\":\"Nextcore\",\"description\":\"C\u00f4ng ty C\u1ed5 ph\u1ea7n Ph\u1ea7n m\u1ec1m Nextcore Th\u00e0nh l\u1eadp v\u00e0o 15 thg 6, 2022 Chuy\u00ean th\u1ef1c hi\u1ec7n ph\u00e1t tri\u1ec3n, b\u1ea3o tr\u00ec c\u00e1c d\u1ef1 \u00e1n CNTT cho c\u00e1c \u0111\u1ed1i t\u00e1c outsource. \u0110\u1ed1i t\u00e1c c\u1ee7a C\u00f4ng ty l\u00e0 c\u00e1c C\u00f4ng ty outsource l\u1edbn-v\u1eeba-nh\u1ecf \u1edf Vi\u1ec7t Nam \u1edf c\u1ea3 3 th\u1ecb tr\u01b0\u1eddng n\u00f3i ti\u1ebfng Anh-Nh\u1eadt-Vi\u1ec7t. Kh\u00f4ng ng\u1eebng n\u1ed7...\",\"publisher\":{\"@id\":\"https:\/\/nextcore.vn\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/nextcore.vn\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/nextcore.vn\/#organization\",\"name\":\"Nextcore\",\"url\":\"https:\/\/nextcore.vn\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/nextcore.vn\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/nextcore.vn\/wp-content\/uploads\/2024\/10\/logo_icon.png\",\"contentUrl\":\"https:\/\/nextcore.vn\/wp-content\/uploads\/2024\/10\/logo_icon.png\",\"width\":2048,\"height\":2048,\"caption\":\"Nextcore\"},\"image\":{\"@id\":\"https:\/\/nextcore.vn\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/nextcore.vn\/#\/schema\/person\/9ac53e94bbd0577e16ba2c55bddfc49d\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/nextcore.vn\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d22c6eb4eb12c385704b9d2cab258da1c6bda130fceebeb6d681f5c4141ef53f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d22c6eb4eb12c385704b9d2cab258da1c6bda130fceebeb6d681f5c4141ef53f?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/nextcore.vn\"],\"url\":\"https:\/\/nextcore.vn\/en\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"H\u01b0\u1edbng d\u1eabn c\u00e1ch \"Debug SpringBoot v\u1edbi Visual code\" m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng | Nextcore","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/nextcore.vn\/en\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/","og_locale":"en_US","og_type":"article","og_title":"H\u01b0\u1edbng d\u1eabn c\u00e1ch \"Debug SpringBoot v\u1edbi Visual code\" m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng | Nextcore","og_description":"Debugging l\u00e0 m\u1ed9t k\u1ef9 n\u0103ng quan tr\u1ecdng \u0111\u1ed1i v\u1edbi b\u1ea5t k\u1ef3 l\u1eadp tr\u00ecnh vi\u00ean n\u00e0o, \u0111\u1eb7c bi\u1ec7t khi l\u00e0m vi\u1ec7c v\u1edbi c\u00e1c \u1ee9ng d\u1ee5ng ph\u1ee9c t\u1ea1p nh\u01b0 Spring Boot. Trong khi nhi\u1ec1u l\u1eadp tr\u00ecnh vi\u00ean quen thu\u1ed9c v\u1edbi IntelliJ IDEA ho\u1eb7c Eclipse, Visual Studio Code (VS Code) l\u1ea1i cung c\u1ea5p m\u1ed9t m\u00f4i tr\u01b0\u1eddng nh\u1eb9 nh\u00e0ng,...","og_url":"https:\/\/nextcore.vn\/en\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/","og_site_name":"Nextcore","article_published_time":"2025-03-26T10:34:09+00:00","og_image":[{"width":711,"height":400,"url":"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/java_debug-711x400-1.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/#article","isPartOf":{"@id":"https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/"},"author":{"name":"admin","@id":"https:\/\/nextcore.vn\/#\/schema\/person\/9ac53e94bbd0577e16ba2c55bddfc49d"},"headline":"H\u01b0\u1edbng d\u1eabn c\u00e1ch &#8220;Debug SpringBoot v\u1edbi Visual code&#8221; m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng","datePublished":"2025-03-26T10:34:09+00:00","dateModified":"2025-03-26T10:34:09+00:00","mainEntityOfPage":{"@id":"https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/"},"wordCount":1585,"publisher":{"@id":"https:\/\/nextcore.vn\/#organization"},"image":{"@id":"https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/#primaryimage"},"thumbnailUrl":"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/java_debug-711x400-1.png","articleSection":["Ki\u1ebfn th\u1ee9c"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/","url":"https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/","name":"H\u01b0\u1edbng d\u1eabn c\u00e1ch \"Debug SpringBoot v\u1edbi Visual code\" m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng | Nextcore","isPartOf":{"@id":"https:\/\/nextcore.vn\/#website"},"primaryImageOfPage":{"@id":"https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/#primaryimage"},"image":{"@id":"https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/#primaryimage"},"thumbnailUrl":"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/java_debug-711x400-1.png","datePublished":"2025-03-26T10:34:09+00:00","dateModified":"2025-03-26T10:34:09+00:00","breadcrumb":{"@id":"https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/#primaryimage","url":"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/java_debug-711x400-1.png","contentUrl":"https:\/\/nextcore.vn\/wp-content\/uploads\/2025\/03\/java_debug-711x400-1.png","width":711,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/nextcore.vn\/huong-dan-cach-debug-springboot-voi-visual-code-mot-cach-de-dang\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Trang ch\u1ee7","item":"https:\/\/nextcore.vn\/"},{"@type":"ListItem","position":2,"name":"H\u01b0\u1edbng d\u1eabn c\u00e1ch &#8220;Debug SpringBoot v\u1edbi Visual code&#8221; m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng"}]},{"@type":"WebSite","@id":"https:\/\/nextcore.vn\/#website","url":"https:\/\/nextcore.vn\/","name":"Nextcore","description":"C\u00f4ng ty C\u1ed5 ph\u1ea7n Ph\u1ea7n m\u1ec1m Nextcore Th\u00e0nh l\u1eadp v\u00e0o 15 thg 6, 2022 Chuy\u00ean th\u1ef1c hi\u1ec7n ph\u00e1t tri\u1ec3n, b\u1ea3o tr\u00ec c\u00e1c d\u1ef1 \u00e1n CNTT cho c\u00e1c \u0111\u1ed1i t\u00e1c outsource. \u0110\u1ed1i t\u00e1c c\u1ee7a C\u00f4ng ty l\u00e0 c\u00e1c C\u00f4ng ty outsource l\u1edbn-v\u1eeba-nh\u1ecf \u1edf Vi\u1ec7t Nam \u1edf c\u1ea3 3 th\u1ecb tr\u01b0\u1eddng n\u00f3i ti\u1ebfng Anh-Nh\u1eadt-Vi\u1ec7t. Kh\u00f4ng ng\u1eebng n\u1ed7...","publisher":{"@id":"https:\/\/nextcore.vn\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/nextcore.vn\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/nextcore.vn\/#organization","name":"Nextcore","url":"https:\/\/nextcore.vn\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/nextcore.vn\/#\/schema\/logo\/image\/","url":"https:\/\/nextcore.vn\/wp-content\/uploads\/2024\/10\/logo_icon.png","contentUrl":"https:\/\/nextcore.vn\/wp-content\/uploads\/2024\/10\/logo_icon.png","width":2048,"height":2048,"caption":"Nextcore"},"image":{"@id":"https:\/\/nextcore.vn\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/nextcore.vn\/#\/schema\/person\/9ac53e94bbd0577e16ba2c55bddfc49d","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/nextcore.vn\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d22c6eb4eb12c385704b9d2cab258da1c6bda130fceebeb6d681f5c4141ef53f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d22c6eb4eb12c385704b9d2cab258da1c6bda130fceebeb6d681f5c4141ef53f?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/nextcore.vn"],"url":"https:\/\/nextcore.vn\/en\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/nextcore.vn\/en\/wp-json\/wp\/v2\/posts\/1732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nextcore.vn\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nextcore.vn\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nextcore.vn\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nextcore.vn\/en\/wp-json\/wp\/v2\/comments?post=1732"}],"version-history":[{"count":2,"href":"https:\/\/nextcore.vn\/en\/wp-json\/wp\/v2\/posts\/1732\/revisions"}],"predecessor-version":[{"id":1758,"href":"https:\/\/nextcore.vn\/en\/wp-json\/wp\/v2\/posts\/1732\/revisions\/1758"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nextcore.vn\/en\/wp-json\/wp\/v2\/media\/1733"}],"wp:attachment":[{"href":"https:\/\/nextcore.vn\/en\/wp-json\/wp\/v2\/media?parent=1732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nextcore.vn\/en\/wp-json\/wp\/v2\/categories?post=1732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nextcore.vn\/en\/wp-json\/wp\/v2\/tags?post=1732"},{"taxonomy":"danh-muc-dich-vu","embeddable":true,"href":"https:\/\/nextcore.vn\/en\/wp-json\/wp\/v2\/danh-muc-dich-vu?post=1732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}