forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
area-debuggingbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
Milestone
Description
Environment data
VS Code version: 1.19.0
Python Extension version: 0.9.0
Python Version: 2.7.12
OS and version: Ubuntu 16.04
Actual behavior
.vscode/extensions/ms-python.python-0.9.0/pythonFiles/PythonTools/visualstudio_py_launcher_nodebug.py", line 117, in handle_exception
frame_file = path.normcase(tb[i][0])
NameError: global name 'path' is not defined
Expected behavior
SystemExit: 255
Steps to reproduce:
- On a python script that contains sys.exit(255) run it with Ctrl+F5
Changing
line 117 frame_file = path.normcase(tb[i][0])
by
frame_file = os.path.normcase(tb[i][0])
solves the problem.
Logs
Output from Python
output panel
.vscode/extensions/ms-python.python-0.9.0/pythonFiles/PythonTools/visualstudio_py_launcher_nodebug.py", line 117, in handle_exception
frame_file = path.normcase(tb[i][0])
NameError: global name 'path' is not defined
Output from Console window
(Help->Developer Tools menu)
Metadata
Metadata
Assignees
Labels
area-debuggingbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug