473,729 Members | 2,234 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

pgdb: Debugging Python extensions made easier

Hi guys,

http://luaforge.net/frs/?group_id=327

pgdb.zip is an addition to scite-debug, which adds source debugging to
the popular SciTE programmer's editor. gdbpy.zip is a standalone
version which can be run from Emacs.

These allow you to single-step from Python to C code in a debugger
session.

To use pgdb, install scite-debug (either on top of an existing SciTE
installation or with one of the packaged all-in-one versions) and
unzip into the same directory.

gdbpy requires Lua 5.1, but there are no other dependencies. In both
cases, read the release notes.

I know the FAQ says that this is not possible, but the FAQ is somewhat
outdated. GDB is quite happy with pending breakpoints to unresolved
libraries, but you have to reassure it. This technique is a
generalization of one that I used to solve the equivalent problem with
debugging Lua extensions.

steve d.
Jun 27 '08 #1
3 2222
SteveD <st************ *@gmail.comwrit es:
pgdb.zip is an addition to scite-debug, which adds source debugging to
the popular SciTE programmer's editor. ...
I know the FAQ says that this is not possible, but the FAQ is somewhat
outdated. GDB is quite happy with pending breakpoints to unresolved
libraries, but you have to reassure it.
I'm not sure what FAQ or what is supposed to be impossible but
I've used gdb in the past to debug python extensions without
running into insurmountable problems that I remember.
Jun 27 '08 #2
They are not insurmontable problems. But you will still see things
like this:

http://aspn.activestate.com/ASPN/Coo...n/Recipe/66510

The point being that with a newish GDB (the current mingw GDB
is still 5.x) there's no need for such tedious tricks, since
it handles pending breakpoints fine. The additional trick I
use for debugging plain non-debug python is to use symbol-file
to load some arbitrary symbols, so GDB will not complain
about breakpoints.

steve d.

On Apr 15, 2:41 am, Paul Rubin <http://phr...@NOSPAM.i nvalidwrote:
SteveD <steve.j.dono.. .@gmail.comwrit es:
pgdb.zip is an addition to scite-debug, which adds source debugging to
the popular SciTE programmer's editor. ...
I know the FAQ says that this is not possible, but the FAQ is somewhat
outdated. GDB is quite happy with pending breakpoints to unresolved
libraries, but you have to reassure it.

I'm not sure what FAQ or what is supposed to be impossible but
I've used gdb in the past to debug python extensions without
running into insurmountable problems that I remember.
Jun 27 '08 #3
SteveD <st************ *@gmail.comwrit es:
The point being that with a newish GDB (the current mingw GDB
I think I was using an older gdb, but under linux, so it's possible
that under mingw there are or were different issues.
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2061
by: Roman Suzi | last post by:
Happy New Year to all Pythoneers! I am playing with pysqlite and pgdb and their DB-API conformancy. It was quite interesting to know: - sqlite doesn't have mandatory helper-functions Date, Tim, etc. (due to an error int it's __init__, but this is quite obvious to correct or just to use mx.Date, mx.Time) more serious mishaps with pgdb (postgresql-python):
1
1868
by: Ram | last post by:
Dear All I am very new to python . i would appreciate any help from you all on this problem which i am facing. I am trying to connect to postgres from python.for this i am using something like " import pgdb". i am able to connect to postgres and fetch data , if i execute the python file directly in unix prompt. However when i try to do thsi through broeser iam getting the following error.. Traceback (most recent call last):
14
4114
by: Manuel Tejada | last post by:
Hi My box: RedHat 9.0, Pentium III Recently I upgraded from PostgreSQL 7.3.2 to PostgreSQL 7.4.1. The PostgreSQL 7.3.2's rpms were installed from RehHat CDs The PostgreSQL 7.4.1's rpms I used to upgrade were downloaded from RHEL3 subdirectory (of the mirror ftp://ftp4.ar.postgresql.org/pub/mirrors/postgresql/binary/v7.4.1/redhat/rhel3). The upgrade is working well, even I can connect to PostgreSQL from a PHP
32
2858
by: siggi | last post by:
@Ben Sizer Hi Ben, in January I received your message re Pygame and Python 2.5: As a Python (and programming ) newbie allow me a - certainly naive - question:
1
2376
by: ekzept | last post by:
the module PGDB which gives Python access to PostgreSql currently wants for a copy of a properly located or proper libpq.dll library, on Windows. anyone know what the current story on this is? thanks, -- jt
1
3143
by: Johannes Bauer | last post by:
Hello group, I've run into a small problem with pgdb which is actually not PostgreSQL specific - I just do not understand the Python syntax at one point. I'm trying to initialize a connection to a PG database. So help(pgdb) says: pgdb.connect(connect_string) -connection connect_string = 'host:database:user:password:opt:tty' All parts are optional. You may also pass host through
0
9280
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9200
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6016
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4795
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2162
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.