{"id":564,"date":"2023-04-30T18:43:29","date_gmt":"2023-04-30T16:43:29","guid":{"rendered":"https:\/\/www.wolter.tech\/?p=564"},"modified":"2023-09-19T16:02:59","modified_gmt":"2023-09-19T14:02:59","slug":"vscode-python-module-debugging","status":"publish","type":"post","link":"https:\/\/www.wolter.tech\/?p=564","title":{"rendered":"Vscode-Python module debugging"},"content":{"rendered":"\n<p>As I spend too much time looking for this on the internet, I am posting an example launch.json for future reference:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"version\": \"0.2.0\",\n    \"configurations\": &#91;\n        {\n            \"name\": \"Python: Current File\",\n            \"type\": \"python\",\n            \"request\": \"launch\",\n            \"module\": \"src.module_name\",\n            \"console\": \"integratedTerminal\",\n            \"justMyCode\": true,\n            \"args\": &#91;\n                \"--arg1\", \"value1\"\n            ]\n        }\n    ]\n}<\/code><\/pre>\n\n\n\n<p>Replace the module path after &#8220;module&#8221; and the arguments in the &#8220;args&#8221; block with more suitable values.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As I spend too much time looking for this on the internet, I am posting an example launch.json for future reference: Replace the module path after &#8220;module&#8221; and the arguments in the &#8220;args&#8221; block with more suitable values.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[34,35],"class_list":["post-564","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-python","tag-vscode","entry"],"_links":{"self":[{"href":"https:\/\/www.wolter.tech\/index.php?rest_route=\/wp\/v2\/posts\/564","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wolter.tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wolter.tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wolter.tech\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wolter.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=564"}],"version-history":[{"count":5,"href":"https:\/\/www.wolter.tech\/index.php?rest_route=\/wp\/v2\/posts\/564\/revisions"}],"predecessor-version":[{"id":587,"href":"https:\/\/www.wolter.tech\/index.php?rest_route=\/wp\/v2\/posts\/564\/revisions\/587"}],"wp:attachment":[{"href":"https:\/\/www.wolter.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wolter.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wolter.tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}