'code' (Visual Studio Code) won't start on Debian, no output

‘code’ (Visual Studio Code) won’t start on Debian 10 and does not give any output. It starts successfully on Ubuntu (tested on 18.04).

Any pointers to troubleshoot it would be most appreciated.

Snap and package info:

$ snap version
snap    2.51
snapd   2.51
series  16
debian  10
kernel  4.19.0-16-amd64
$ snap info code
name:      code
summary:   Code editing. Redefined.
publisher: Visual Studio Code (vscode✓)
store-url: https://snapcraft.io/code
contact:   https://twitter.com/code
license:   unset
description: |
  Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and
  is available for Linux, macOS and Windows. It comes with built-in support for JavaScript,
  TypeScript and Node.js and has a rich ecosystem of extensions for other languages (such as C++,
  C#, Java, Python, PHP, Go) and runtimes (such as .NET and Unity).
  By downloading and using Visual Studio Code, you agree to the license terms
  (https://code.visualstudio.com/License/) and privacy statement
  (https://privacy.microsoft.com/en-us/privacystatement). Visual Studio Code automatically sends
  telemetry data and crash dumps to help us improve the product. If you would prefer not to have
  this data sent please go see
  https://code.visualstudio.com/docs/supporting/FAQ#_how-to-disable-crash-reporting to learn how to
  disable it.
  - code
  - code.url-handler
snap-id:      Ht0aUHi7ofh9Fbwh6m7jUN2pAy6kzBiu
tracking:     latest/stable
refresh-date: today at 16:41 EET
  latest/stable:    b4c1bd0a 2021-06-10 (66) 217MB classic
  latest/candidate: ↑                              
  latest/beta:      ↑                              
  latest/edge:      ↑                              
installed:          b4c1bd0a            (66) 217MB classic
1 Like

Tricky, VSCode is maintained by the upstream so it might be best to get intouch with them some how :thinking:

VSCode https://github.com/Microsoft/vscode

Their website

Where they ask folks get in contact

@Igor any ideas? Are there any known issues that have caused this for other snaps?

Try running SNAPD_DEBUG=1 SNAP_CONFINE_DEBUG=1 snap run code and attach the output.

Nothing that comes to mind right away. If the OP can provide some debug data, it might be useful to figure out what went wrong.