debugging the Python process with gdbPosted in Python on 2011-10-12 10:08:50, tagged with debug, gdb, Python.
Sometimes we want to debug a running Python process, or a coredump of a python process. For example, a MOD_WSGI process is now dead and
Call relationship between CPython. The call relationship between CPython. because python has many powerful open-source libraries, c can use the methods to complete more functions. Therefore, C is particularly important to call python methods. Call
Debugging a Python process with gdb sometimes we want to debug a running Python process, or a Python process coredump. For example, now encountered a MOD_WSGI process zombie, do not accept the request, want to see exactly what line of Python code to
Call relationships between C/python
Because Python has a lot of powerful open source libraries, C can borrow methods to do more.
So C's method of calling Python is especially important.
Method/Step
Ubuntu 14.04 Linux CGCC (Ubuntu 4.8.2-19ubuntu1)
In boost. Python, python is embedded in the C ++ section, and Chinese documents found on the Internet seem to be outdated,
Such as boost. Python Study Notes http://edyfox.codecarver.org/html/boost_python.html
InBoost. Python version 2To provide
It is well known that a service (Wsgi interface) written in scripting languages requires a server container, common such as PHP php-fpm, LIGHTD, and so on. The uwsgi,uwsgi used in Python is a new protocol based on WSGI that can be used to deploy
C languageIn the C language, the input parameters of the main function, argc and argv, are passed into the command-line arguments.
The ARGC is of type int, indicating the number of arguments passed in the command line (argument count);
Python method for obtaining command line parameters (recommended), python command line parameters
This article describes how the sys and getopt modules in python process command line parameters.
If you want to pass parameters to python scripts, what
Basic knowledge
Compiling languages and interpreting languages
Although many programming techniques are now blending, there are many interpretive languages with compiled systems, and compiled languages with complex run-time systems, but usually
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.