LoginSignup
1
0

More than 3 years have passed since last update.

RustをCodeLLDBでデバッグするときにデバッグサイドバーで文字列が表示されないときの解決方法

Posted at

現象

VSCodeの拡張機能CodeLLDBでRustのコードをデバッグ実行したときに、
デバッグサイドバーで文字列が表示されない。スクショの左上参照。
スクリーンショット 2020-08-20 14.48.33.png

OSはmacOS Catalina 10.15.5です。
デバッグコンソールを見ると

Could not initialize Python interpreter - some features will be unavailable (e.g. debug visualizers).

というエラーが吐かれてます。

解決策

ワークスペースの.vscode/settings.json

   "lldb.libpython": "/usr/local/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7.dylib"

を追加します。
環境によってlibpythonの場所は違う可能性がありますので、そのときは適宜読み替えてください。

スクリーンショット 2020-08-20 14.48.57.png

これで開発効率が爆上がりしました👍

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0