Add --pid option to ptvsd command line. When used, injects the debugger
into the process with the specified ID, such that it connects back to
the specified host/port.
* Add support for debug console completion
* Add test files
* Adding tests
* Add supportsCompletionsRequest to _requests
* Add test for bad request
* Fix sorting issue in test
* Address comments
* Remove unsupported test for completions
* Add required argument to completions request in tests
* Fix linter issues
* Fix#355: Add 'remote launch' - launch a program for remote debugging but continue running the user code
Add --wait command line argument, and don't block code execution if it is not specified.
* Add copyright headers.
* sys.__breakpointhook__ should be available when __builtin__.breakpoint is set. Fixes#766
* On Python 3.7, sys.__breakpointhook__ should not be tested as it'll call the original pdb version.
* Try setting timeouts to stabalize tests
* Fix linter issues
* Fix break into debugger
* Soem tweaks
* Give web server additional time to finish writing to output
* refactor server url extraction code
* Fix 253 builtin breakpoint (#756)
* Refactored pydevd tests.
* Add support for Python 3.7 breakpoint() function. #253
* Add tests for continue on disconnect. (#744)
* Add tests for continue on disconnect.
* Wait for optput before sending commands
* Try setting timeouts to stabalize tests
* Fix linter issues
* Fix break into debugger
* Soem tweaks
* Give web server additional time to finish writing to output
* Address comments and enable more tests
* Set timeout in disconnect test
* Fix linter
* Ensure stopped thread is breakpoint thread
* Fix server attach break into debugger issue
* More fixes and tweaks
* Added launch module test for break_into_debugger
* Tweak allowing break_into_debugger
* Add more tests
* Switch to using CMD_GET_EXCEPTION_DETAILS (#738)
* Switch to using CMD_GET_EXCEPTION_DETAILS
* Fix exception tests
* Fix breakpoint tests
* Fix ThreadSuspendEventTests
* Fix ExceptionInfoTests
* Fix linter issue
* Some tweaks
* Fix server attach break into debugger issue
* More fixes and tweaks
* Added launch module test for break_into_debugger
* Fix linter issues
* Add file path to sys.argv when running as module
* Bunch of fixes to set the argv[0] correctly.
* check for pyc
* tweak __main__ py or pyc selection for argv
* Continue resumes all threads
* Enable suspend policy ALL
* stacktraces and active exceptions are no longer stored
* stacktraces and active exceptions are no longer stored
* Fix set breakpoints tests
* Fix exception info
* Fix breakpoint tests
* Fix exception breakpoint tests
* Fix syntax
* Fix exception info
* Fix syntax
* Fix Stack trace tests
* Fix for 2.7
* Minor refactor
* Fix ContinueTests
* Fix ExceptionInfoTests
* Enable more tests
* Remove tests that are now no-ops
* Minor tweaks
* Fix test_attach_breakpoints
* typo
* More tweaks
* Send error response for unknown threads
* Use assert_contains in continue tests
* Add some TODOs
* Continue if the suspended in debugger code
* Get more info via exception description
* More logging
* Add a check for site-packages
* Remove debug logs and cleanup
* Fix tests
* Fix more test bugs
* more cleanup
Fixes#545, #711, #712
More tests to be written as part of #718
Summary of solution:
* For remote attach, spin up pydevd (use `install`)
* In a separate thread wait for connections (within a loop, to support multiples)
* Ensure only one connection is supported at a time
* Use a simple event to ensure we have a single session at a time (we won't accept more than one connection if even is set)
* Use a simple event to detect when a handshake has been successfully been done

@karthiknadig
I've basically reverted the way `enable_attach` works.
This allows breaking into the current thread without any issues.
Not sure what else it breaks, lets see how the tests go.
Lets talk about the changes, hacks/solutions tomorrow.
Easy fixes, just need some simple locks!!
Fixes#675#674
* Flask system tests initial
* Enable route and template breakpoint tests.
* Fix typo
* Remove wait for thread exit
* Few more tweaks
* More tweaks
* Try adding LC_ALL utf-8
* Add more tests
* Remove flask version pinning
* Rename and move flask tests to make room for django tests
* Switch to using requests
* Fix line number in attach
* Add django to packages
* Add Django tests
* Tweaks to django test
* Remove hardcoded port
Adds unhandled exception tests #654
Fixes a bug in _io.py that caused JSONDecodeError in tests sometimes #683
Fixes a issue for some cases where the tests were timing out on windows