While debugging, use the correct path for breakpoints

This commit is contained in:
Ben Jackson 2020-09-27 21:19:47 +01:00
commit bd09206caf
8 changed files with 203 additions and 8 deletions

View file

@ -0,0 +1,21 @@
{
"configurations": {
"run": {
"adapter": "debugpy",
"default": true,
"configuration": {
"request": "launch",
"program": "${workspaceRoot}/moo.py",
"cwd": "${workspaceRoot}",
"stopOnEntry": true
},
"breakpoints": {
"exception": {
"raised": "N",
"uncaught": "",
"userUnhandled": ""
}
}
}
}
}

View file

@ -0,0 +1,15 @@
def Say( *args, **kwargs ):
print( *args, **kwargs )
def Quiet():
pass

View file

@ -0,0 +1,13 @@
import cow
def Moo():
for i in range( 1, 100 ):
cow.Say( 'Moo' )
for i in range( 1, 100 ):
cow.Say( 'Ooom' )
if __name__ == '__main__':
Moo()