{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-python/issues/1371","repository_url":"https://api.github.com/repos/Microsoft/vscode-python","labels_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/1371/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/1371/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/1371/events","html_url":"https://github.com/Microsoft/vscode-python/issues/1371","id":313435210,"number":1371,"title":"Setting VS Code debugger to use conda environment","user":{"login":"WardenGnaw","id":3953714,"avatar_url":"https://avatars3.githubusercontent.com/u/3953714?v=4","gravatar_id":"","url":"https://api.github.com/users/WardenGnaw","html_url":"https://github.com/WardenGnaw","followers_url":"https://api.github.com/users/WardenGnaw/followers","following_url":"https://api.github.com/users/WardenGnaw/following{/other_user}","gists_url":"https://api.github.com/users/WardenGnaw/gists{/gist_id}","starred_url":"https://api.github.com/users/WardenGnaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WardenGnaw/subscriptions","organizations_url":"https://api.github.com/users/WardenGnaw/orgs","repos_url":"https://api.github.com/users/WardenGnaw/repos","events_url":"https://api.github.com/users/WardenGnaw/events{/privacy}","received_events_url":"https://api.github.com/users/WardenGnaw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-11T18:21:00Z","updated_at":"2018-04-11T19:28:15Z","closed_at":"2018-04-11T18:33:55Z","author_association":"MEMBER","body":"From https://github.com/Microsoft/vscode-cpptools/issues/1818 by @allthatido \r\n\r\n---------------------------------------------------------------------------------\r\n\r\nSystem Info\r\n      * Windows 10 Home , Version 1709 , OS Build 16299.371\r\nVS Code Info\r\n      * Version 1.22.1\r\n      * Commit 950b8b0d37a9b7061b6f0d291837ccc4015f5ecd\r\n      * Shell 1.7.12\r\n      * Renderer 58.0.3029.110\r\n      * Node 7.9.0\r\n      * Architecture x64\r\nPython extension\r\n      * Version 2018.3.1\r\n\r\nI have installed miniconda on my machine and created a python environment called 'fcnd'. I have modified the user setting to use anaconda prompt to be used as the integrated terminal while I code.\r\n```\r\n{\r\n    \"terminal.integrated.shell.windows\": \"C:\\\\Windows\\\\System32\\\\cmd.exe\",\r\n    \"terminal.integrated.shellArgs.windows\": [\r\n        \"/K\",\r\n        \"C:\\\\ProgramData\\\\Miniconda3\\\\Scripts\\\\activate.bat C:\\\\ProgramData\\\\Miniconda3\"\r\n    ]\r\n}\r\n```\r\nThe anaconda prompt however defaults to the 'base' environment and I have to issue an 'activate fcnd' command to launch my python programs. Can I modify the user settings so that the default environment is 'fcnd' ?\r\n\r\nAlso when I try to debug the code with the 'Python: Current File' setting, the python debug console uses the base anaconda environement. How can I make the debugging use the anaconda fcnd environment ?\r\n![capture](https://user-images.githubusercontent.com/10551664/38631206-14777154-3d87-11e8-8327-b23cec424e45.PNG)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-python/issues/comments/380568612","html_url":"https://github.com/Microsoft/vscode-python/issues/1371#issuecomment-380568612","issue_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/1371","id":380568612,"user":{"login":"allthatido","id":10551664,"avatar_url":"https://avatars1.githubusercontent.com/u/10551664?v=4","gravatar_id":"","url":"https://api.github.com/users/allthatido","html_url":"https://github.com/allthatido","followers_url":"https://api.github.com/users/allthatido/followers","following_url":"https://api.github.com/users/allthatido/following{/other_user}","gists_url":"https://api.github.com/users/allthatido/gists{/gist_id}","starred_url":"https://api.github.com/users/allthatido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allthatido/subscriptions","organizations_url":"https://api.github.com/users/allthatido/orgs","repos_url":"https://api.github.com/users/allthatido/repos","events_url":"https://api.github.com/users/allthatido/events{/privacy}","received_events_url":"https://api.github.com/users/allthatido/received_events","type":"User","site_admin":false},"created_at":"2018-04-11T19:28:15Z","updated_at":"2018-04-11T19:28:15Z","author_association":"NONE","body":"Thanks DonJayamanne\r\n I did remove changes I made to the setting.json. However I am facing the error as in screenshot. The debugger is not finding a file in the same directory. However when I run the program in the anaconda prompt it runs fine.\r\n![capture](https://user-images.githubusercontent.com/10551664/38638645-f06e53a2-3d9c-11e8-9542-bf5d80dd8125.PNG)\r\n"}}
{"actor":{"display_login":"allthatido"}}