4 ms·
As an additional plus, you can apple-click "builtin" functions from inside of VSCode and drill into core libs for debugging purposes (adding breakpoints, log st
by tmountain 7y ago
As an additional plus, you can apple-click "builtin" functions from inside of VSCode and drill into core libs for debugging purposes (adding breakpoints, log statements, etc). I've done this on a number of occasions to quickly get the result from an external HTTP request, etc. Go truly feels like a hacker's language that lets you get under the hood really easily when necessary.
- mhh__ 7y agoIs 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
- TheDong 7y agoHave you ever used smalltalk? The smalltalk development environment is so much better than being able to look at stdlib functions (which afaik everything allows? I don't think I've run into a language yet that didn't allow such introspection).
- masklinn 7y agoIt can be difficult to drill into “native” stdlib routines from interprètent langages e.g. definitely doesn’t work in python even using pycharm, you get the skeleton stubs instead. I’d expect mruby to have similar issues.