※当サイトの記事には、広告・プロモーションが含まれます。

PythonのWebアプリケーションのデバッグはVS Code(Visual Studio Code)でできる模様

gigazine.net

しかし、高繊維サプリメントの摂取によって記憶や処理時間など、老化した脳の認知機能のいくつかの側面を改善する可能性が認められた一方、身体的な変化は確認できませんでした。今回の実験では、どちらのグループも年齢に伴う筋肉の減少を改善することはできなかったとのこと。

安価なサプリメントを摂取することで高齢者の脳機能が高まることが判明、腸内改善にも効果的なサプリとは? - GIGAZINE

⇧ 運動する習慣を持った方が良いってことですかね。

PythonのWebアプリケーションのデバッグVS CodeVisual Studio Code)でできる模様

前々回、

ts0818.hatenablog.com

⇧ 上記の記事の時に、PythonにおけるMVC(Model View Controller)構成を実現する際に、Python用のWebフレームワークを利用することになるとは思うことと、「アプリケーションサーバー」的なものが必要ということが分かりましたと。

で、そうなってくると、気になるのが「デバッグ」に対応している開発環境を知りたいと。

ネットの情報によると、Pythonの開発ツールとしては、

engineer-style.jp

⇧ 上記サイト様によりますと、

No. ツール 管理団体 無償・有償
1 PyCharm JetBrains
  • 無料版(Community Edition)
  • 有料版(Professional Edition)
2 PyScripter 不明 無料
3 Visual Studio Microsoft
  • 無料版(Community Edition)
  • 有料版(Professional Edition)
4 Eclipse Eclipse Foundation 無料
5 IntelliJ IDEA JetBrains
  • 無料版(Community Edition)
  • 有料版(Professional Edition)
6 VS CodeVisual Studio Code Microsoft 無料
7 Atom クリス・ワンストラス 無料
8 Sublime Text Jon Skinner 無料

⇧ のようなツールの候補がありますと。

で、「Python web application debug」とかでググったところ、

news.mynavi.jp

⇧ 上記サイト様が上位表示のトップにヒットしたので、PythonでWebアプリケーションの開発を進めるにあたっては、「VS CodeVisual Studio Code)」を利用していけば良いってことですかね?

とりあえず、

qiita.com

⇧ 上記サイト様を確認した感じでは、

といった、Python用のWebフレームワークのメジャーどころには対応している模様。

メジャーどころのPython用のWebフレームワークには、開発用の「アプリケーションサーバー」が内蔵されているということですかね?

とりあえず、

devblogs.microsoft.com

code.visualstudio.com

A more realistic debugger extension contributes many or all of the following declarative items to VS Code:

  • List of languages supported by the debugger. VS Code enables the UI to set breakpoints for those languages.
  • JSON schema for the debug configuration attributes introduced by the debugger. VS Code uses this schema to verify the configuration in the launch.json editor and provides IntelliSense. Please note that the JSON schema constructs $ref and definition are not supported.
  • Default debug configurations for the initial launch.json created by VS Code.
  • Debug configuration snippets that a user can add to a launch.json file.
  • Declaration of variables that can be used in debug configurations.

https://code.visualstudio.com/api/extension-guides/debugger-extension

⇧「VS CodeVisual Studio Code)」で「デバッグ」を実現するにあたり、

なのかが分からん...

つまり、「VS CodeVisual Studio Code)」をインストールした時点で、「Debugger Extention」という「拡張機能」がインストール済の状態と考えて良いのか、別途インストール作業が必要なのか。

Microsoftの公式のドキュメントで、「FastAPI」のチュートリアルを確認した感じでは、

code.visualstudio.com

⇧ とあるので、「VS CodeVisual Studio Code)」としては「Python extention for VS Code」という「拡張機能」だけあれば良い模様。

⇧ 上図にある「Python」という「拡張機能」がインストールできていればOKと。

とりあえずは、PythonのWebアプリケーションの開発環境は、「VS CodeVisual Studio Code)」を利用する感じで良いんかね?

Linuxシェルスクリプトとか利用しているような環境についても、「VS CodeVisual Studio Code)」なら「コンテナ」にリモート接続できますし。

VS CodeVisual Studio Code)」での「リモートデバッグ」については、

net-newbie.com

⇧ 上記サイト様が参考になるかと。

とりあえず、PythonのWebアプリケーションの開発については「VS CodeVisual Studio Code)」を利用する方針で良いということですかね?

コーディング以外の部分に時間をかけたくないんよね...

毎度モヤモヤ感が半端ない…

今回はこのへんで。