Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
19ca6b53
Commit
19ca6b53
authored
Mar 25, 2011
by
Mark Florisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update debugger docs with () and 'cy set'
parent
b18cf636
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
19 deletions
+29
-19
src/userguide/debugging.rst
src/userguide/debugging.rst
+29
-19
No files found.
src/userguide/debugging.rst
View file @
19ca6b53
...
@@ -176,6 +176,10 @@ of these commands are analogous to their respective gdb command.
...
@@ -176,6 +176,10 @@ of these commands are analogous to their respective gdb command.
ob_type = 0x83a3e0
ob_type = 0x83a3e0
}
}
.. function:: cy set cython_variable = value
Set a Cython variable on the Cython stack to value.
.. function:: cy list
.. function:: cy list
List the source code surrounding the current line.
List the source code surrounding the current line.
...
@@ -228,17 +232,23 @@ gdb expression.
...
@@ -228,17 +232,23 @@ gdb expression.
Returns the value of a Cython variable.
Returns the value of a Cython variable.
.. function:: cy_eval(expression)
Evaluates Python code in the nearest Python or Cython frame and returns
the result of the expression as a gdb value. This gives a new reference
if successful, NULL on error.
.. function:: cy_lineno()
.. function:: cy_lineno()
Returns the current line number in the selected Cython frame.
Returns the current line number in the selected Cython frame.
Example::
Example::
(gdb) print $cy_cname("
x
")
(gdb) print $cy_cname("
x
")
$1 = "
__pyx_v_x
"
$1 = "
__pyx_v_x
"
(gdb) watch $cy_cvalue("
x
")
(gdb) watch $cy_cvalue("
x
")
Hardware watchpoint 13: $cy_cvalue("
x
")
Hardware watchpoint 13: $cy_cvalue("
x
")
(gdb) cy set my_cython_variable = $cy_eval("
{
'spam'
:
'ham'
}
")
(gdb) print $cy_lineno()
(gdb) print $cy_lineno()
$2 = 12
$2 = 12
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment