{"action":"created","issue":{"url":"https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/395","repository_url":"https://api.github.com/repos/DonJayamanne/pythonVSCode","labels_url":"https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/395/labels{/name}","comments_url":"https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/395/comments","events_url":"https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/395/events","html_url":"https://github.com/DonJayamanne/pythonVSCode/issues/395","id":183739025,"number":395,"title":"When starting debug on Win (all versions), I get \"NameError, name 'true' is not defined\"","user":{"login":"PaluMacil","id":7151622,"avatar_url":"https://avatars.githubusercontent.com/u/7151622?v=3","gravatar_id":"","url":"https://api.github.com/users/PaluMacil","html_url":"https://github.com/PaluMacil","followers_url":"https://api.github.com/users/PaluMacil/followers","following_url":"https://api.github.com/users/PaluMacil/following{/other_user}","gists_url":"https://api.github.com/users/PaluMacil/gists{/gist_id}","starred_url":"https://api.github.com/users/PaluMacil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaluMacil/subscriptions","organizations_url":"https://api.github.com/users/PaluMacil/orgs","repos_url":"https://api.github.com/users/PaluMacil/repos","events_url":"https://api.github.com/users/PaluMacil/events{/privacy}","received_events_url":"https://api.github.com/users/PaluMacil/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-18T16:33:37Z","updated_at":"2016-10-20T00:30:49Z","closed_at":"2016-10-20T00:30:49Z","body":"When I try to run a python file in debug mode (specific configuration didn't seem to matter--I tried multiple):\r\n\r\nError in Debug console:\r\n`NameError, name 'true' is not defined\r\n`\r\nAt that time, the yellow highlighted debug carrot is over the opening bracket of the launch.json file.\r\n\r\nI'm using Windows 7, extension 0.4.2, VSCode 1.6.1. I'm not sure if this problem was introduced in the commit that closed **[issue 168](https://github.com/DonJayamanne/pythonVSCode/issues/168)**, but it could be.  I was able to work around the problem by deleting all instances of ` \"stopOnEntry\": true,` from the launch.json file. I couldn't tell what changed. Once that was removed, I could step debug normally.\r\n\r\nAfter modification, the launch.json is: \r\n```\r\n{\r\n    \"version\": \"0.2.0\",\r\n    \"configurations\": [\r\n        {\r\n            \"name\": \"Python\",\r\n            \"type\": \"python\",\r\n            \"request\": \"launch\",\r\n            \r\n            \"pythonPath\": \"${config.python.pythonPath}\",\r\n            \"program\": \"${file}\",\r\n            \"debugOptions\": [\r\n                \"WaitOnAbnormalExit\",\r\n                \"WaitOnNormalExit\",\r\n                \"RedirectOutput\"\r\n            ]\r\n        },\r\n        {\r\n            \"name\": \"Integrated Terminal/Console\",\r\n            \"type\": \"python\",\r\n            \"request\": \"launch\",\r\n            \"pythonPath\": \"${config.python.pythonPath}\",\r\n            \"program\": \"${file}\",\r\n            \"console\": \"integratedTerminal\",\r\n            \"debugOptions\": [\r\n                \"WaitOnAbnormalExit\",\r\n                \"WaitOnNormalExit\"\r\n            ]\r\n        },\r\n        {\r\n            \"name\": \"External Terminal/Console\",\r\n            \"type\": \"python\",\r\n            \"request\": \"launch\",\r\n            \"pythonPath\": \"${config.python.pythonPath}\",\r\n            \"program\": \"${file}\",\r\n            \"console\": \"externalTerminal\",\r\n            \"debugOptions\": [\r\n                \"WaitOnAbnormalExit\",\r\n                \"WaitOnNormalExit\"\r\n            ]\r\n        },\r\n        {\r\n            \"name\": \"Django\",\r\n            \"type\": \"python\",\r\n            \"request\": \"launch\",\r\n            \"pythonPath\": \"${config.python.pythonPath}\",\r\n            \"program\": \"${workspaceRoot}/manage.py\",\r\n            \"args\": [\r\n                \"runserver\",\r\n                \"--noreload\"\r\n            ],\r\n            \"debugOptions\": [\r\n                \"WaitOnAbnormalExit\",\r\n                \"WaitOnNormalExit\",\r\n                \"RedirectOutput\",\r\n                \"DjangoDebugging\"\r\n            ]\r\n        },\r\n        {\r\n            \"name\": \"Flask\",\r\n            \"type\": \"python\",\r\n            \"request\": \"launch\",\r\n            \"pythonPath\": \"${config.python.pythonPath}\",\r\n            \"program\": \"${workspaceRoot}/run.py\",\r\n            \"args\": [],\r\n            \"debugOptions\": [\r\n                \"WaitOnAbnormalExit\",\r\n                \"WaitOnNormalExit\",\r\n                \"RedirectOutput\"\r\n            ]\r\n        },\r\n        {\r\n            \"name\": \"Watson\",\r\n            \"type\": \"python\",\r\n            \"request\": \"launch\",\r\n            \"pythonPath\": \"${config.python.pythonPath}\",\r\n            \"program\": \"${workspaceRoot}/console.py\",\r\n            \"args\": [\r\n                \"dev\",\r\n                \"runserver\",\r\n                \"--noreload=True\"\r\n            ],\r\n            \"debugOptions\": [\r\n                \"WaitOnAbnormalExit\",\r\n                \"WaitOnNormalExit\",\r\n                \"RedirectOutput\"\r\n            ]\r\n        },\r\n        {\r\n            \"name\": \"Attach (Remote Debug)\",\r\n            \"type\": \"python\",\r\n            \"request\": \"attach\",\r\n            \"localRoot\": \"${workspaceRoot}\",\r\n            \"remoteRoot\": \"${workspaceRoot}\",\r\n            \"port\": 3000,\r\n            \"secret\": \"my_secret\",\r\n            \"host\": \"localhost\"\r\n        }\r\n    ]\r\n}\r\n```\r\n**Besides the workaround I mentioned, this is the auto generated config when you first click the debug run button.**"},"comment":{"url":"https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments/254978628","html_url":"https://github.com/DonJayamanne/pythonVSCode/issues/395#issuecomment-254978628","issue_url":"https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/395","id":254978628,"user":{"login":"PaluMacil","id":7151622,"avatar_url":"https://avatars.githubusercontent.com/u/7151622?v=3","gravatar_id":"","url":"https://api.github.com/users/PaluMacil","html_url":"https://github.com/PaluMacil","followers_url":"https://api.github.com/users/PaluMacil/followers","following_url":"https://api.github.com/users/PaluMacil/following{/other_user}","gists_url":"https://api.github.com/users/PaluMacil/gists{/gist_id}","starred_url":"https://api.github.com/users/PaluMacil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaluMacil/subscriptions","organizations_url":"https://api.github.com/users/PaluMacil/orgs","repos_url":"https://api.github.com/users/PaluMacil/repos","events_url":"https://api.github.com/users/PaluMacil/events{/privacy}","received_events_url":"https://api.github.com/users/PaluMacil/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T00:30:49Z","updated_at":"2016-10-20T00:30:49Z","body":"Oh! I only just began using VS Code, though I guess I should have considered the fact that there would need to be a way the launch.json was specifying the file to run. I tested on my Win 10 machine and it's \"resolved\". There is probably no need to test on my other machine. ;) Thanks for teaching me how to use this new tool correctly, haha."}}
{"actor":{"display_login":"PaluMacil"}}