[issue23163] pdb docs need to contain a statement on threads/multithreaded debugging

2020-09-19 Thread Georg Brandl


Change by Georg Brandl :


--
nosy:  -georg.brandl

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23163] pdb docs need to contain a statement on threads/multithreaded debugging

2020-09-06 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

See also https://bugs.python.org/issue41571

--
nosy: +pablogsal

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23163] pdb docs need to contain a statement on threads/multithreaded debugging

2020-09-06 Thread Bar Harel


Change by Bar Harel :


--
nosy: +bar.harel

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23163] pdb docs need to contain a statement on threads/multithreaded debugging

2019-04-27 Thread daniel hahler


Change by daniel hahler :


--
nosy: +blueyed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23163] pdb docs need to contain a statement on threads/multithreaded debugging

2017-01-27 Thread Attila-Mihaly Balazs

Attila-Mihaly Balazs added the comment:

Absolutely this. While it is good that there is at least some documentation (at 
sys.settrace), it is not very explicit nor is it self evident that one should 
look there (for example the PDB docs don't even mention settrace).

--
nosy: +Attila-Mihaly Balazs

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23163] pdb docs need to contain a statement on threads/multithreaded debugging

2015-01-11 Thread Karl Richter

Karl Richter added the comment:

Sorry, I mean 

#!/usr/bin/python

import threading

def debugging():
def __a_thread__():
print(2)
a_thread = threading.Thread(target=__a_thread__)
a_thread.start()
a_thread.join()
print(1)

if __name__ == __main__:
debugging()

It's very uncommon to set the current debugging thread in the source.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23163
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23163] pdb docs need to contain a statement on threads/multithreaded debugging

2015-01-11 Thread Karl Richter

Karl Richter added the comment:

My initial description was imprecise. Clearification: The fact that in

#!/usr/bin/python

import threading

def debugging():
def __a_thread__():
print(2)
a_thread = threading.Thread(target=__a_thread__)
print(1)

if __name__ == __main__:
debugging()

when invoked with `python -m pdb` the breakpoint at line 7 is ignored, like in

$ python -m pdb multithreaded_debugging.py 
 
/mnt/DATA/richter/examples/python/multithreaded_debugging/multithreaded_debugging.py(3)module()
- import threading
(Pdb) break 7
Breakpoint 1 at 
/mnt/DATA/richter/examples/python/multithreaded_debugging/multithreaded_debugging.py:7
(Pdb) c
1
The program finished and will be restarted
 
/mnt/DATA/richter/examples/python/multithreaded_debugging/multithreaded_debugging.py(3)module()
- import threading
(Pdb)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23163
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23163] pdb docs need to contain a statement on threads/multithreaded debugging

2015-01-10 Thread Xavier de Gaye

Xavier de Gaye added the comment:

pdb does not ignore breakpoints which are set and hit in a non-main thread.
For example with the attached script:

$ python pdb_thread.py
 pdb_thread.py(5)foo()
- lineno = 5
(Pdb) break 6
Breakpoint 1 at pdb_thread.py:6
(Pdb) continue
 pdb_thread.py(6)foo()
- lineno = 6
(Pdb) threading.current_thread().name
'fooThread'
(Pdb)

--
nosy: +xdegaye
Added file: http://bugs.python.org/file37668/pdb_thread.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23163
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23163] pdb docs need to contain a statement on threads/multithreaded debugging

2015-01-10 Thread Xavier de Gaye

Xavier de Gaye added the comment:

The pdb documentation could make an explicit reference to the documentation of 
sys.settrace() where it is explained that the function is thread specific.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23163
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23163] pdb docs need to contain a statement on threads/multithreaded debugging

2015-01-04 Thread Karl Richter

New submission from Karl Richter:

Due to the fact that `pdb` currently simply ignores breakpoints which are set 
and hit in another than the main thread the docs need to contain a statement on 
behavior in a multithreaded environment.

--
components: Library (Lib)
messages: 233409
nosy: krichter
priority: normal
severity: normal
status: open
title: pdb docs need to contain a statement on threads/multithreaded debugging
type: enhancement
versions: Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23163
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23163] pdb docs need to contain a statement on threads/multithreaded debugging

2015-01-04 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
nosy: +georg.brandl

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23163
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com