我在 Ubuntu 16.04 上安装了 Visual Studio Code,但它无法启动或显示错误消息。我该如何调试它?
$ sudo snap install code --classic
$ sudo reboot
$ snap list
Name Version Rev Tracking Publisher Notes
code 51b0b281 6 stable vscode✓ classic
core 16-2.38 6673 stable canonical✓ core
$ snap run code
$ sudo snap run code
[sudo] password:
You are trying to start vscode as a super user which is not recommended. If you
really want to, you must specify an alternate user data directory using the --user-data-dir argument.
$ snap run code
$
$ ps -elf | grep code
0 S gradesc+ 3945 1699 0 80 0 - 3556 pipe_w 15:23 pts/8 00:00:00 grep --color=auto code
$ ps -elf | grep snap
4 S root 1151 1 0 80 0 - 324508 - 14:15 ? 00:00:00 /usr/lib/snapd/snapd
0 S gradesc+ 3947 1699 0 80 0 - 3556 pipe_w 15:24 pts/8 00:00:00 grep --color=auto snap
我的屏幕上什么都没显示。我正在通过 VNC 连接到使用 xfce GUI 的服务器。