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
Gwenaël Samain
cython
Commits
cc31ed04
Commit
cc31ed04
authored
Sep 23, 2016
by
Robert Bradshaw
Committed by
GitHub
Sep 23, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1460 from lindsayad/dbg_docs
Added more detailed documentation for using cygdb
parents
151d653d
614249e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
docs/src/userguide/debugging.rst
docs/src/userguide/debugging.rst
+15
-5
No files found.
docs/src/userguide/debugging.rst
View file @
cc31ed04
...
...
@@ -12,11 +12,18 @@ higher, built with Python support (linked to Python 2.6 or higher).
The
debugger
supports
debuggees
with
versions
2.6
and
higher
.
For
Python
3
,
code
should
be
built
with
Python
3
and
the
debugger
should
be
run
with
Python
2
(
or
at
least
it
should
be
able
to
find
the
Python
2
Cython
installation
).
installation
).
Note
that
in
recent
versions
of
Ubuntu
,
for
instance
,
``
gdb
``
installed
with
``
apt
-
get
``
is
configured
with
Python
3.
On
such
systems
,
the
proper
configuration
of
``
gdb
``
can
be
obtained
by
downloading
the
``
gdb
``
source
,
and
then
running
::
./
configure
--
with
-
python
=
python2
make
sudo
make
install
The
debugger
will
need
debug
information
that
the
Cython
compiler
can
export
.
This
can
be
achieved
from
within
the
setup
script
by
passing
``
gdb_debug
=
True
``
to
``
cythonize
()``::
This
can
be
achieved
from
within
the
setup
script
by
passing
``
gdb_debug
=
True
``
to
``
cythonize
()``::
from
distutils
.
core
import
setup
from
distutils
.
extension
import
Extension
...
...
@@ -56,7 +63,10 @@ support separately, e.g. for ubuntu::
$
sudo
apt
-
get
install
python
-
dbg
$
python
-
dbg
setup
.
py
build_ext
--
inplace
Then
you
need
to
run
your
script
with
``
python
-
dbg
``
also
.
Then
you
need
to
run
your
script
with
``
python
-
dbg
``
also
.
Ensure
that
when
building
your
package
with
debug
symbols
that
cython
extensions
are
re
-
compiled
if
they
had
been
previously
compiled
.
If
your
package
is
version
controlled
,
you
might
want
to
perform
``
git
clean
-
fxd
``
or
``
hg
purge
--
all
``
before
building
.
You
can
also
pass
additional
arguments
to
gdb
::
...
...
@@ -64,7 +74,7 @@ You can also pass additional arguments to gdb::
i
.
e
.::
$
cygdb
.
--
args
python
-
dbg
mainscript
.
py
$
cygdb
.
--
--
args
python
-
dbg
mainscript
.
py
To
tell
cygdb
not
to
import
any
debug
information
,
supply
``--``
as
the
first
argument
::
...
...
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