This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ptvsd | |
# attach to VS Code debugger if this script was run with BOKEH_VS_DEBUG=true | |
if os.environ['BOKEH_VS_DEBUG'] == 'true': | |
# 5678 is the default attach port in the VS Code debug configurations | |
print('Waiting for debugger attach') | |
ptvsd.enable_attach(address=('localhost', 5678), redirect_output=True) | |
ptvsd.wait_for_attach() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ptvsd | |
# attach to VS Code debugger if this script was run with BOKEH_VS_DEBUG=true | |
if os.environ['BOKEH_VS_DEBUG'] == 'true': | |
# 5678 is the default attach port in the VS Code debug configurations | |
print('Waiting for debugger attach') | |
ptvsd.enable_attach(address=('localhost', 5678), redirect_output=True) | |
ptvsd.wait_for_attach() |