|
232 | 232 | "program" |
233 | 233 | ], |
234 | 234 | "properties": { |
| 235 | + "module": { |
| 236 | + "type": "string", |
| 237 | + "description": "Name of the module to be debugged.", |
| 238 | + "default": "" |
| 239 | + }, |
235 | 240 | "program": { |
236 | 241 | "type": "string", |
237 | 242 | "description": "Absolute path to the program.", |
|
374 | 379 | "stopOnEntry": true, |
375 | 380 | "pythonPath": "${config.python.pythonPath}", |
376 | 381 | "program": "${file}", |
| 382 | + "cwd": "null", |
| 383 | + "debugOptions": [ |
| 384 | + "WaitOnAbnormalExit", |
| 385 | + "WaitOnNormalExit", |
| 386 | + "RedirectOutput" |
| 387 | + ] |
| 388 | + }, |
| 389 | + { |
| 390 | + "name": "Python Module", |
| 391 | + "type": "python", |
| 392 | + "request": "launch", |
| 393 | + "stopOnEntry": true, |
| 394 | + "pythonPath": "${config.python.pythonPath}", |
| 395 | + "module": "module.name", |
| 396 | + "cwd": "${workspaceRoot}", |
377 | 397 | "debugOptions": [ |
378 | 398 | "WaitOnAbnormalExit", |
379 | 399 | "WaitOnNormalExit", |
|
387 | 407 | "stopOnEntry": true, |
388 | 408 | "pythonPath": "${config.python.pythonPath}", |
389 | 409 | "program": "${file}", |
| 410 | + "cwd": "null", |
390 | 411 | "console": "integratedTerminal", |
391 | 412 | "debugOptions": [ |
392 | 413 | "WaitOnAbnormalExit", |
|
400 | 421 | "stopOnEntry": true, |
401 | 422 | "pythonPath": "${config.python.pythonPath}", |
402 | 423 | "program": "${file}", |
| 424 | + "cwd": "null", |
403 | 425 | "console": "externalTerminal", |
404 | 426 | "debugOptions": [ |
405 | 427 | "WaitOnAbnormalExit", |
|
413 | 435 | "stopOnEntry": true, |
414 | 436 | "pythonPath": "${config.python.pythonPath}", |
415 | 437 | "program": "${workspaceRoot}/manage.py", |
| 438 | + "cwd": "null", |
416 | 439 | "args": [ |
417 | 440 | "runserver", |
418 | 441 | "--noreload" |
|
431 | 454 | "stopOnEntry": false, |
432 | 455 | "pythonPath": "${config.python.pythonPath}", |
433 | 456 | "program": "fully qualified path fo 'flask' executable. Generally located along with python interpreter", |
| 457 | + "cwd": "null", |
434 | 458 | "env": { |
435 | 459 | "FLASK_APP": "${workspaceRoot}/quickstart/app.py" |
436 | 460 | }, |
|
452 | 476 | "stopOnEntry": false, |
453 | 477 | "pythonPath": "${config.python.pythonPath}", |
454 | 478 | "program": "${workspaceRoot}/run.py", |
| 479 | + "cwd": "null", |
455 | 480 | "args": [], |
456 | 481 | "debugOptions": [ |
457 | 482 | "WaitOnAbnormalExit", |
|
466 | 491 | "stopOnEntry": true, |
467 | 492 | "pythonPath": "${config.python.pythonPath}", |
468 | 493 | "program": "${workspaceRoot}/console.py", |
| 494 | + "cwd": "null", |
469 | 495 | "args": [ |
470 | 496 | "dev", |
471 | 497 | "runserver", |
|
0 commit comments