Skip to content

Commit

Permalink
Defined vscode debugger configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
eventhelix committed Dec 16, 2018
1 parent 084dc07 commit 78bc0fe
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 2 deletions.
65 changes: 65 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File (Integrated Terminal)",
"type": "python",
"request": "launch",
"program": "${file}",
"args": ["-i", "sample_trace.txt"],
"console": "integratedTerminal"
},
{
"name": "Python: Attach",
"type": "python",
"request": "attach",
"port": 5678,
"host": "localhost"
},
{
"name": "Python: Module",
"type": "python",
"request": "launch",
"module": "enter-your-module-name-here",
"console": "integratedTerminal"
},
{
"name": "Python: Django",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/manage.py",
"console": "integratedTerminal",
"args": [
"runserver",
"--noreload",
"--nothreading"
],
"django": true
},
{
"name": "Python: Flask",
"type": "python",
"request": "launch",
"module": "flask",
"env": {
"FLASK_APP": "app.py"
},
"args": [
"run",
"--no-debugger",
"--no-reload"
],
"jinja": true
},
{
"name": "Python: Current File (External Terminal)",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "externalTerminal"
}
]
}
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# Specifies the path where Visual Studio code extensions are installed in Windows
# (You do not need to change this unless your Visual Studio Code extensions are installed
# at a different path.)
vsCodeExtensions = r'%USERPROFILE%\.vscode\extensions'
vsCodeExtensions = '%USERPROFILE%/.vscode/extensions'

# The EventStudio command line to be used to generate the sequence diagrams.
eventStudioCommandLine = r'{eventStudio} build project.scn.json'
Expand Down
2 changes: 1 addition & 1 deletion funutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def first(xs : Iterable[a], condition = lambda x: True) -> Maybe[a]:
If the condition is not given, returns the first item of
the iterable.
Raises `StopIteration` if no item satysfing the condition is found.
Raises `StopIteration` if no item satisfying the condition is found.
>>> first( (1,2,3), condition=lambda x: x % 2 == 0)
2
Expand Down

0 comments on commit 78bc0fe

Please sign in to comment.