4 ms·
Is that not normal? The only languages I don't do that in (if needed) are C++ (STL code makes my eyes bleed), and C (no need - too basic). That being said if y
by mhh__ 7y ago
Is that not normal? The only languages I don't do that in (if needed) are C++ (STL code makes my eyes bleed), and C (no need - too basic).
That being said if you need to add a breakpoint into stdlib code then God help you? (never used go so can't comment)
- ebeip90 7y agoSetting breakpoints on CPython native code is a PITA and can’t be done (afaik) from PDB.
- deleted 7y ago[deleted]
- 1337shadow 7y agoDoesn't b do the trick for you ? b(reak) [ ([filename:]lineno | function) [, condition] ] Without argument, list all breaks. With a line number argument, set a break at this line in the current file. With a function name, set a break at the first executable line of that function. If a second argument is present, it is a string specifying an expression which must evaluate to true before the breakpoint is honored. The line number may be prefixed with a filename and a colon, to specify a breakpoint in another file (probably one that hasn't been loaded yet). The file is searched for on sys.path; the .py suffix may be omitted.
- ebeip90 7y agoThis breaks on Python code, not CPython native (C) code