Skip to content

Commit 573ebdf

Browse files
committed
doc/contributing: Document the use of the debug application
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
1 parent 54a00dc commit 573ebdf

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

doc/contributing.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ Then `exec` into the virtual machine, stop the main `incus-osd` service and run
5353
mount -o bind /root/incus-osd /usr/local/bin/incus-osd
5454
systemctl start incus-osd
5555

56-
There's no text editor in the base image, but it's easy to fetch the [micro](https://github.com/zyedidia/micro) text editor:
57-
58-
mkdir /tmp/micro/
59-
curl -sLo /tmp/micro/micro.tar.gz https://github.com/zyedidia/micro/releases/download/v2.0.14/micro-2.0.14-linux64-static.tar.gz
60-
tar -xzf /tmp/micro/micro.tar.gz -C /tmp/micro --strip-components=1
61-
mv /tmp/micro/micro /root/micro
62-
rm -rf /tmp/micro
63-
export EDITOR=/root/micro
56+
When debugging, it's a good idea to install the `debug` application which contains a variety of useful tools, including a basic text editor (`nano`).
57+
58+
incus exec test-incus-os bash
59+
curl --unix-socket /run/incus-os/unix.socket socket/1.0/applications -X POST -d '{"name": "debug"}'

0 commit comments

Comments
 (0)