forked from hpyproject/hpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add very simple debug mode documentation.
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Debug Mode | ||
========== | ||
|
||
HPy includes a debug mode that may be activated at *run time* with | ||
*no overhead*. This is possible because the whole of the HPy API is provided | ||
as part of the HPy context, so debug mode can pass in a special debugging | ||
context (that wraps the normal context) without affecting the performance of | ||
the regular context at all. | ||
|
||
The debugging context can already check for: | ||
|
||
* Leaked handles. | ||
* Handles used after they are closed. | ||
|
||
An HPy module may be loaded in debug mode using:: | ||
|
||
mod = hpy.universal.load(module_name, so_filename, debug=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters