FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonVSCode/pythonFiles/ptvsd_launcher.py at master · scottwedge/pythonVSCode · GitHub
scottwedge
/
pythonVSCode
Public
forked from
DonJayamanne/pythonVSCode
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonVSCode
/
pythonFiles
/
ptvsd_launcher.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
48 lines (42 loc) · 1.02 KB
Breadcrumbs
pythonVSCode
/
pythonFiles
/
ptvsd_launcher.py
Copy path
File metadata and controls
48 lines (42 loc) · 1.02 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import
os
import
os
.
path
import
sys
import
traceback
useCustomPtvsd
=
sys
.
argv
[
1
]
==
"--custom"
ptvsdArgs
=
sys
.
argv
[:]
ptvsdArgs
.
pop
(
1
)
# Load the debugger package
try
:
ptvsd_lib_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"lib"
,
"python"
,
"old_ptvsd"
)
if
useCustomPtvsd
:
sys
.
path
.
append
(
ptvsd_lib_path
)
else
:
sys
.
path
.
insert
(
0
,
ptvsd_lib_path
)
try
:
import
ptvsd
from
ptvsd
.
__main__
import
main
ptvsd_loaded
=
True
except
ImportError
:
ptvsd_loaded
=
False
raise
except
:
traceback
.
print_exc
()
print
(
"""
Internal error detected. Please copy the above traceback and report at
https://github.com/Microsoft/vscode-python/issues/new
Press Enter to close. . ."""
)
try
:
raw_input
()
except
NameError
:
input
()
sys
.
exit
(
1
)
finally
:
if
ptvsd_lib_path
:
sys
.
path
.
remove
(
ptvsd_lib_path
)
main
(
ptvsdArgs
)
Back
|
FazBrowse Home
|
New Git URL