330 строки
11 KiB
JSON
330 строки
11 KiB
JSON
{
|
|
// 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",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${file}"
|
|
},
|
|
{
|
|
"name": "Python: test quick start",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}\\restler\\end_to_end_tests\\test_quick_start.py",
|
|
"args": [
|
|
"d:\\restlerdrop\\tracedb2",
|
|
]
|
|
},
|
|
{
|
|
"name": "Python: diff network logs",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}\\restler\\utils\\network_logs\\diff_network_logs.py",
|
|
"args": [
|
|
"--left_file",
|
|
"D:\\test\\734\\logs_before_2\\logs\\network.testing.48660.1.txt",
|
|
"--right_file",
|
|
"D:\\test\\734\\logs_after_2\\logs\\network.testing.47156.1.txt"
|
|
]
|
|
},
|
|
{
|
|
"name": "Python: GC unit test",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}\\restler\\restler.py",
|
|
"args": [
|
|
"--use_test_socket",
|
|
"--custom_mutations",
|
|
"${workspaceFolder}\\restler\\unit_tests\\log_baseline_test_files\\gc_test_dict.json",
|
|
"--garbage_collection_interval",
|
|
"30",
|
|
"--host",
|
|
"unittest",
|
|
"--token_refresh_cmd",
|
|
"python ${workspaceFolder}\\restler\\unit_tests\\log_baseline_test_files\\unit_test_server_auth.py",
|
|
"--token_refresh_interval",
|
|
"10",
|
|
"--fuzzing_mode",
|
|
"test-all-combinations",
|
|
"--restler_grammar",
|
|
"${workspaceFolder}\\restler\\unit_tests\\log_baseline_test_files\\gc_test_grammar.py",
|
|
"--settings",
|
|
"${workspaceFolder}\\restler\\unit_tests\\log_baseline_test_files\\gc_test_settings.json"
|
|
]
|
|
},
|
|
{
|
|
"name": "Python: test create once",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}\\restler\\restler.py",
|
|
"args": [
|
|
"--use_test_socket",
|
|
"--custom_mutations",
|
|
"d:\\git\\restler-fuzzer\\restler\\unit_tests\\log_baseline_test_files\\test_dict.json",
|
|
"--garbage_collection_interval",
|
|
"30",
|
|
"--host",
|
|
"unittest",
|
|
"--token_refresh_cmd",
|
|
"python d:\\git\\restler-fuzzer\\restler\\unit_tests\\log_baseline_test_files\\unit_test_server_auth.py",
|
|
"--token_refresh_interval",
|
|
"10",
|
|
"--fuzzing_mode",
|
|
"directed-smoke-test",
|
|
"--restler_grammar",
|
|
"d:\\git\\restler-fuzzer\\restler\\unit_tests\\log_baseline_test_files\\test_grammar.py",
|
|
"--settings",
|
|
"d:\\git\\restler-fuzzer\\restler\\unit_tests\\log_baseline_test_files\\test_settings_createonce.json"
|
|
]
|
|
},
|
|
{
|
|
"name": "Python: test mode",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}\\restler\\restler.py",
|
|
"args": [
|
|
"--fuzzing_mode",
|
|
"directed-smoke-test",
|
|
"--restler_grammar",
|
|
"d:\\test\\demo_server\\Compile\\grammar.py",
|
|
"--custom_mutations",
|
|
"d:\\test\\demo_server\\Compile\\dict.json",
|
|
"--settings",
|
|
"d:\\test\\demo_server\\Compile\\engine_settings.json",
|
|
"--no_ssl",
|
|
"--host",
|
|
"localhost",
|
|
"--target_port",
|
|
"8888",
|
|
"--garbage_collection_interval",
|
|
"30"
|
|
],
|
|
"justMyCode": false
|
|
},
|
|
{
|
|
"name": "Python: replay mode with grammar",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}\\restler\\restler.py",
|
|
"args": [
|
|
"--replay_log",
|
|
"D:\\test\\demo_server\\replaytests3\\replay_trace_data.ndjson",
|
|
"--restler_grammar",
|
|
"d:\\test\\demo_server\\replaytests3\\Compile\\grammar.py",
|
|
"--custom_mutations",
|
|
"d:\\test\\demo_server\\replaytests3\\Compile\\dict.json",
|
|
"--settings",
|
|
"d:\\test\\demo_server\\replaytests3\\Compile\\engine_settings.json",
|
|
"--no_ssl",
|
|
"--host",
|
|
"localhost",
|
|
"--target_port",
|
|
"8888",
|
|
"--garbage_collection_interval",
|
|
"30"
|
|
],
|
|
"justMyCode": false
|
|
},
|
|
{
|
|
"name": "Python: replay mode no grammar",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}\\restler\\restler.py",
|
|
"args": [
|
|
"--replay_log",
|
|
"D:\\test\\demo_server\\replaytests\\replay_trace_data.ndjson",
|
|
"--no_ssl",
|
|
"--host",
|
|
"localhost",
|
|
"--target_port",
|
|
"8888",
|
|
"--garbage_collection_interval",
|
|
"30"
|
|
],
|
|
"justMyCode": false
|
|
},
|
|
{
|
|
"name": "Python: examples checker",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}\\restler\\restler.py",
|
|
"args": [
|
|
"--fuzzing_mode",
|
|
"directed-smoke-test",
|
|
"--restler_grammar",
|
|
"c:\\restler\\restlerexampleschecker\\compile\\grammar.py",
|
|
"--custom_mutations",
|
|
"c:\\restler\\restlerexampleschecker\\compile\\dict.json",
|
|
"--settings",
|
|
"c:\\restler\\restlerexampleschecker\\settings.json",
|
|
"--enable_checkers",
|
|
"examples",
|
|
"--no_tokens_in_logs",
|
|
"t",
|
|
"--garbage_collection_interval",
|
|
"30"
|
|
]
|
|
},
|
|
{
|
|
"name": "Python: unit test",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}\\restler\\restler.py",
|
|
"args": [
|
|
"--fuzzing_mode",
|
|
"directed-smoke-test",
|
|
"--restler_grammar",
|
|
"restler\\unit_tests\\log_baseline_test_files\\test_grammar.py",
|
|
"--custom_mutations",
|
|
"restler\\unit_tests\\log_baseline_test_files\\test_dict.json",
|
|
"--settings",
|
|
"c:\\temp\\restler\\engine_settings.json",
|
|
"--use_test_socket",
|
|
"--garbage_collection_interval",
|
|
"30",
|
|
"--target_ip",
|
|
"1",
|
|
"--target_port",
|
|
"1",
|
|
"--token_refresh_cmd",
|
|
"python restler\\unit_tests\\log_baseline_test_files\\unit_test_server_auth.py",
|
|
"--token_refresh_interval",
|
|
"30"
|
|
]
|
|
},
|
|
{
|
|
"name": "Python: restler.py -h",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}\\restler\\restler.py",
|
|
"args": [
|
|
"-h"
|
|
],
|
|
"stopOnEntry": true,
|
|
"console": "externalTerminal",
|
|
"cwd": "c:\\temp\\restler"
|
|
},
|
|
{
|
|
"name": "Python: restler.py",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}\\restler\\restler.py",
|
|
"args": [
|
|
"--swagger_specification",
|
|
"c:\\temp\\restler\\demo_server.json",
|
|
"--inspect_grammar",
|
|
"sdf"
|
|
],
|
|
"stopOnEntry": true,
|
|
"console": "externalTerminal",
|
|
"cwd": "c:\\temp\\restler"
|
|
},
|
|
{
|
|
"name": "Python: Attach",
|
|
"type": "python",
|
|
"request": "attach",
|
|
"localRoot": "${workspaceFolder}",
|
|
"remoteRoot": "${workspaceFolder}",
|
|
"port": 3000,
|
|
"secret": "my_secret",
|
|
"host": "localhost"
|
|
},
|
|
{
|
|
"name": "Python: Terminal (integrated)",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${file}",
|
|
"console": "integratedTerminal"
|
|
},
|
|
{
|
|
"name": "Python: Terminal (external)",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${file}",
|
|
"console": "externalTerminal"
|
|
},
|
|
{
|
|
"name": "Python: Django",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/manage.py",
|
|
"args": [
|
|
"runserver",
|
|
"--noreload",
|
|
"--nothreading"
|
|
],
|
|
"debugOptions": [
|
|
"RedirectOutput",
|
|
"Django"
|
|
]
|
|
},
|
|
{
|
|
"name": "Python: Flask (0.11.x or later)",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "flask",
|
|
"env": {
|
|
"FLASK_APP": "${workspaceFolder}/app.py"
|
|
},
|
|
"args": [
|
|
"run",
|
|
"--no-debugger",
|
|
"--no-reload"
|
|
]
|
|
},
|
|
{
|
|
"name": "Python: Module",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "module.name"
|
|
},
|
|
{
|
|
"name": "Python: Pyramid",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"args": [
|
|
"${workspaceFolder}/development.ini"
|
|
],
|
|
"debugOptions": [
|
|
"RedirectOutput",
|
|
"Pyramid"
|
|
]
|
|
},
|
|
{
|
|
"name": "Python: Watson",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/console.py",
|
|
"args": [
|
|
"dev",
|
|
"runserver",
|
|
"--noreload=True"
|
|
]
|
|
},
|
|
{
|
|
"name": "Python: All debug Options",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"python": "${command:python.interpreterPath}",
|
|
"program": "${file}",
|
|
"module": "module.name",
|
|
"env": {
|
|
"VAR1": "1",
|
|
"VAR2": "2"
|
|
},
|
|
"envFile": "${workspaceFolder}/.env",
|
|
"args": [
|
|
"arg1",
|
|
"arg2"
|
|
],
|
|
"debugOptions": [
|
|
"RedirectOutput"
|
|
]
|
|
}
|
|
]
|
|
} |