How to use the pydevd.dump_threads function in pydevd

To help you get started, we’ve selected a few pydevd examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fabioz / PyDev.Debugger / tests_python / test_dump_threads.py View on Github external
def test_dump_threads():
    import pydevd
    try:
        from StringIO import StringIO
    except:
        from io import StringIO
    stream = StringIO()
    pydevd.dump_threads(stream=stream)
    contents = stream.getvalue()
    assert 'Thread MainThread  (daemon: False, pydevd thread: False)' in contents
    assert 'test_dump_threads' in contents
github microsoft / ptvsd / src / ptvsd / _vendored / pydevd / tests_python / test_dump_threads.py View on Github external
def test_dump_threads():
    import pydevd
    try:
        from StringIO import StringIO
    except:
        from io import StringIO
    stream = StringIO()
    pydevd.dump_threads(stream=stream)
    contents = stream.getvalue()
    assert 'Thread MainThread  (daemon: False, pydevd thread: False)' in contents
    assert 'test_dump_threads' in contents
github fabioz / Pydev / plugins / org.python.pydev.core / pysrc / tests_python / test_dump_threads.py View on Github external
def test_dump_threads():
    import pydevd
    try:
        from StringIO import StringIO
    except:
        from io import StringIO
    stream = StringIO()
    pydevd.dump_threads(stream=stream)
    contents = stream.getvalue()
    assert 'Thread MainThread  (daemon: False, pydevd thread: False)' in contents
    assert 'test_dump_threads' in contents