aboutsummaryrefslogtreecommitdiffstats
path: root/docs/part-2/4_xds-gdb
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-01-22 12:04:00 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-01-22 12:04:00 +0100
commit614a0538ca128f458ccd781db299e2e3e7232fd0 (patch)
treeec94cebde5f5fd2b4e7b866129727cdbf890a531 /docs/part-2/4_xds-gdb
parent2df07cd595a5a148cd0e33b970e2eb6c46a92665 (diff)
Add Go + Angular code debugging instructions.eel_5.0.1eel/5.0.15.0.1
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'docs/part-2/4_xds-gdb')
-rw-r--r--docs/part-2/4_xds-gdb/3_debug.md39
1 files changed, 38 insertions, 1 deletions
diff --git a/docs/part-2/4_xds-gdb/3_debug.md b/docs/part-2/4_xds-gdb/3_debug.md
index 80554ec..c43e51e 100644
--- a/docs/part-2/4_xds-gdb/3_debug.md
+++ b/docs/part-2/4_xds-gdb/3_debug.md
@@ -1,3 +1,40 @@
-# Debug
+# Debugging
+
+## XDS gdb architecture
+
+This tool is written in *Go*.
+
+```bash
+|
++-- bin/ # where xds-gdb binary will be built
+|
++-- gdb-XXX.go # xds-gdb Go sources
+|
++-- conf.d/ # Linux configuration and startup files (systemd user service)
+|
++-- glide.yaml # Go package dependency file
+|
++-- LICENSE # XDS gdb license
+|
++-- main.go # main entry point (Go)
+|
++-- Makefile # makefile including
+|
++-- README.md # readme
+|
++-- scripts/ # hold various scripts used for installation
+|
++-- vendor/ # temporary directory to hold Go dependencies packages
+```
+
+## Debug
+
+Install first [Visual Studio Code](https://code.visualstudio.com/) and
+[Go plugin](https://marketplace.visualstudio.com/items?itemName=lukehoban.Go)
+(`ext install lukehoban.Go`)
Visual Studio Code launcher settings can be found into `.vscode/launch.json`.
+
+Please follow instructions of xds-agent [debugging chapter](../2_xds-agent/4_debug.html#debug-xds-agent-go-code),
+knowing that you execute these same instructions in `xds-gdb` repo, in other words
+by replacing *xds-agent* references by *xds-gdb*.