Support --wait-for-debugger in tests.

Review URL: https://codereview.chromium.org/486193003

git-svn-id: http://src.chromium.org/svn/trunk/src/base@291456 4ff67af0-8c30-449e-8e8b-ad334ec8d88c