hello,
I'm trying to embed a debugger into an editor.
I'm only interested in high level debugging.
The first question is what debugger is the best for my purpose ?
(pdb, pydb, rpdb2, smart debugger, extended debugger ?
Second question, in none of the above debuggers (except rpdb2),
I can find a "break now",
so it seems impossible to me to detect unlimited while loops ?
For the moment I started with pdb, because most of the debuggers seems
to be an extension on pdb.
When I launch the debugger ( winXP, Python 2.5) from with my editor
python -u -m pdb D:\\Data\\test_IDE.py
I get this error
IOError: (2, 'No such file or directory', 'D:\\Data\test_IDE.py')
NOTICE 1 backslash ----------------------------------^
If I launch the debugger with
python -u -m pdb D:/Data/test_IDE.py
It runs fine.
This looks like a bug to me.
What's the best way to report these kind of bugs ?
Although I mostly use os.path.join to be OS independent,
these kind of bugs give me the impression,
that I can better do the join myself and always use forward slashes.
Is this a valid conclusion ?
thanks,
Stef Mientki 6 1362
On Sep 4, 4:22*pm, Stef Mientki <stef.mien...@gmail.comwrote:
hello,
I'm trying to embed a debugger into an editor.
I'm only interested in high level debugging.
The first question is what debugger is the best for my purpose ?
(pdb, pydb, rpdb2, smart debugger, extended debugger ?
Second question, in none of the above debuggers (except rpdb2),
I can find a *"break now",
so it seems impossible to me to detect unlimited while loops ?
For the moment I started with pdb, because most of the debuggers seems
to be an extension on pdb.
When I launch the debugger ( winXP, Python 2.5) from with my editor
* python -u -m pdb *D:\\Data\\test_IDE.py
I get this error
* IOError: (2, 'No such file or directory', 'D:\\Data\test_IDE.py')
NOTICE 1 backslash ----------------------------------^
If I launch the debugger with
* python -u -m pdb *D:/Data/test_IDE.py
It runs fine.
This looks like a bug to me.
What's the best way to report these kind of bugs ?
Although I mostly use os.path.join to be OS independent,
these kind of bugs give me the impression,
that I can better do the join myself and always use forward slashes.
Is this a valid conclusion ?
thanks,
Stef Mientki
Stef,
I discovered the same problem too with my editor. I solved it by
using only the file name, and setting the initial directory on the
executable.
For something pdb doesn't have, can you look at it yourself? Or, can
you write your own ad hoc, specialized to detecting while loops, using
settrace and 'except KeyboardInterrupt'?
castironpi <ca********@gmail.comwrites:
On Sep 4, 4:22*pm, Stef Mientki <stef.mien...@gmail.comwrote:
>hello,
I'm trying to embed a debugger into an editor. I'm only interested in high level debugging. The first question is what debugger is the best for my purpose ? (pdb, pydb, rpdb2, smart debugger, extended debugger ?
Second question, in none of the above debuggers (except rpdb2), I can find a *"break now", so it seems impossible to me to detect unlimited while loops ?
For the moment I started with pdb, because most of the debuggers seems to be an extension on pdb. When I launch the debugger ( winXP, Python 2.5) from with my editor * python -u -m pdb *D:\\Data\\test_IDE.py I get this error * IOError: (2, 'No such file or directory', 'D:\\Data\test_IDE.py') NOTICE 1 backslash ----------------------------------^
If I launch the debugger with * python -u -m pdb *D:/Data/test_IDE.py It runs fine.
This looks like a bug to me. What's the best way to report these kind of bugs ?
Although I mostly use os.path.join to be OS independent, these kind of bugs give me the impression, that I can better do the join myself and always use forward slashes. Is this a valid conclusion ?
thanks, Stef Mientki
Stef,
I discovered the same problem too with my editor. I solved it by
using only the file name, and setting the initial directory on the
executable.
I don't know if this helps, but in pydb there is an option to set the
initial directory the debugger works in. Inside the debugger there is
the gdb command "cd".
Stef Mientki <st**********@gmail.comwrites:
hello,
I'm trying to embed a debugger into an editor.
I'm only interested in high level debugging.
The first question is what debugger is the best for my purpose ?
(pdb, pydb, rpdb2, smart debugger, extended debugger ?
Second question, in none of the above debuggers (except rpdb2),
I can find a "break now",
so it seems impossible to me to detect unlimited while loops ?
I am not sure what you mean by "break now". pdb and pydb allow direct
calls from a program to the debugger via set_trace (which in pydb is
deprecated in favor of I think the more descriptive name: debugger)
But I suspect this is not what you mean to "detect unlimited while
loops"; pydb also has gdb-style signal handling that allows for entry
into the debugger when the debugged python process receives a
particular signal. "info handle" lists all of the interrupts and what
action is to be taken on each. See http://bashdb.sourceforge.net/pydb/pydb/lib/node38.html
However I believe that signals are only handled by the main thread; so
if that's blocked, the python process won't see the signal.
>
For the moment I started with pdb, because most of the debuggers seems
to be an extension on pdb.
When I launch the debugger ( winXP, Python 2.5) from with my editor
python -u -m pdb D:\\Data\\test_IDE.py
I get this error
IOError: (2, 'No such file or directory', 'D:\\Data\test_IDE.py')
NOTICE 1 backslash ----------------------------------^
If I launch the debugger with
python -u -m pdb D:/Data/test_IDE.py
It runs fine.
This looks like a bug to me.
What's the best way to report these kind of bugs ?
winpdb, pydb and pdb (part of Python) all have Sourceforge projects
which have bug trackers. For pdb, in the past people includng myself,
have reported features, patches and bugs in the Python tracker;
eventually it gets handled. (Eventually in my case means a year or
so.) But if my information is incorrect or out of date, no doubt
someone will correct me.
As mentioned in the last paragraph, pydb also is a Sourceforge project
(part of bashdb) which has a tracker for bug reporting. Using the bug
tracker I think is better than discussing pydb bugs in c.l.p. By
extension, I assume the same is also true for the other debuggers.
Finally, I think rpdb2 is part of the winpdb project on Sourceforge
and again has a bug tracker. My sense is that Nir Aides is very good
about handling bugs reported in winpdb/rpdb.
>
Although I mostly use os.path.join to be OS independent,
these kind of bugs give me the impression,
that I can better do the join myself and always use forward slashes.
Is this a valid conclusion ?
thanks,
Stef Mientki
R. Bernstein wrote:
Stef Mientki <st**********@gmail.comwrites:
>hello,
I'm trying to embed a debugger into an editor. I'm only interested in high level debugging. The first question is what debugger is the best for my purpose ? (pdb, pydb, rpdb2, smart debugger, extended debugger ?
Second question, in none of the above debuggers (except rpdb2), I can find a "break now", so it seems impossible to me to detect unlimited while loops ?
I am not sure what you mean by "break now". pdb and pydb allow direct
calls from a program to the debugger via set_trace (which in pydb is
deprecated in favor of I think the more descriptive name: debugger)
But I suspect this is not what you mean to "detect unlimited while
loops"; pydb also has gdb-style signal handling that allows for entry
into the debugger when the debugged python process receives a
particular signal. "info handle" lists all of the interrupts and what
action is to be taken on each. See http://bashdb.sourceforge.net/pydb/pydb/lib/node38.html
However I believe that signals are only handled by the main thread; so
if that's blocked, the python process won't see the signal.
Thanks,
Yes, I think the trace option can do the job,
certainly if I display every line.
Didn't know pdb had something like settrace ( the information on pdb is
very condensed ;-)
>
>For the moment I started with pdb, because most of the debuggers seems to be an extension on pdb. When I launch the debugger ( winXP, Python 2.5) from with my editor python -u -m pdb D:\\Data\\test_IDE.py I get this error IOError: (2, 'No such file or directory', 'D:\\Data\test_IDE.py') NOTICE 1 backslash ----------------------------------^
If I launch the debugger with python -u -m pdb D:/Data/test_IDE.py It runs fine.
This looks like a bug to me. What's the best way to report these kind of bugs ?
winpdb, pydb and pdb (part of Python) all have Sourceforge projects
which have bug trackers. For pdb, in the past people includng myself,
have reported features, patches and bugs in the Python tracker;
eventually it gets handled. (Eventually in my case means a year or
so.) But if my information is incorrect or out of date, no doubt
someone will correct me.
I'll take a look, for the sake of our children ;-)
As mentioned in the last paragraph, pydb also is a Sourceforge project
(part of bashdb) which has a tracker for bug reporting. Using the bug
tracker I think is better than discussing pydb bugs in c.l.p.
c.l.p. ?
By
extension, I assume the same is also true for the other debuggers.
Finally, I think rpdb2 is part of the winpdb project on Sourceforge
and again has a bug tracker. My sense is that Nir Aides is very good
about handling bugs reported in winpdb/rpdb.
Yes I started with rpdb2,
and indeed Nir Aides is very helpfull,
but I think interfaceing rpdb2 is a little too difficult for me,
but I'll certainly add winpdb as the option for external debugging.
For now I think pydb is the choice,
better control and more functions than pdb,
and almost just as easy.
cheers,
Stef
>
>Although I mostly use os.path.join to be OS independent, these kind of bugs give me the impression, that I can better do the join myself and always use forward slashes. Is this a valid conclusion ?
thanks, Stef Mientki
-- http://mail.python.org/mailman/listinfo/python-list
Stef Mientki <st**********@gmail.comwrites:
From: Stef Mientki <st**********@gmail.com>
Subject: Re: pdb bug and questions
Newsgroups: comp.lang.python
To: "py*********@python.org" <py*********@python.org>
Date: Fri, 05 Sep 2008 22:06:19 +0200
R. Bernstein wrote:
>Stef Mientki <st**********@gmail.comwrites:
>>hello,
I'm trying to embed a debugger into an editor. I'm only interested in high level debugging. The first question is what debugger is the best for my purpose ? (pdb, pydb, rpdb2, smart debugger, extended debugger ?
Second question, in none of the above debuggers (except rpdb2), I can find a "break now", so it seems impossible to me to detect unlimited while loops ? I am not sure what you mean by "break now". pdb and pydb allow direct calls from a program to the debugger via set_trace (which in pydb is deprecated in favor of I think the more descriptive name: debugger) But I suspect this is not what you mean to "detect unlimited while loops"; pydb also has gdb-style signal handling that allows for entry into the debugger when the debugged python process receives a particular signal. "info handle" lists all of the interrupts and what action is to be taken on each. See http://bashdb.sourceforge.net/pydb/pydb/lib/node38.html
However I believe that signals are only handled by the main thread; so if that's blocked, the python process won't see the signal.
Thanks,
Yes, I think the trace option can do the job,
certainly if I display every line.
Didn't know pdb had something like settrace ( the information on pdb
is very condensed ;-)
It sounds to me like there may be some confusion -- if at least on my
part. pdb's set_trace (with the underscore) is documented here: http://docs.python.org/lib/module-pdb.html . Yes, perhaps it would be
nice if that document gave an example. But set_trace is a method call,
not an option.
There is a pydb debugger *command* called "set trace" as well as a
command-line option (-X --trace) which turns on line tracing and is
something totally different. It can be fun to use that with "set
linetrace delay" in an editor to allow one to watch the lines execute
as the program runs. I did this with emacs in this video: http://showmedo.com/videos/video?nam...romSeriesID=28
>>
>>For the moment I started with pdb, because most of the debuggers seems to be an extension on pdb. When I launch the debugger ( winXP, Python 2.5) from with my editor python -u -m pdb D:\\Data\\test_IDE.py I get this error IOError: (2, 'No such file or directory', 'D:\\Data\test_IDE.py') NOTICE 1 backslash ----------------------------------^
If I launch the debugger with python -u -m pdb D:/Data/test_IDE.py It runs fine.
This looks like a bug to me. What's the best way to report these kind of bugs ? winpdb, pydb and pdb (part of Python) all have Sourceforge projects which have bug trackers. For pdb, in the past people includng myself, have reported features, patches and bugs in the Python tracker; eventually it gets handled. (Eventually in my case means a year or so.) But if my information is incorrect or out of date, no doubt someone will correct me.
I'll take a look, for the sake of our children ;-)
>As mentioned in the last paragraph, pydb also is a Sourceforge project (part of bashdb) which has a tracker for bug reporting. Using the bug tracker I think is better than discussing pydb bugs in c.l.p.
c.l.p. ?
This newsgroup, comp.lang.python.
> By extension, I assume the same is also true for the other debuggers.
Finally, I think rpdb2 is part of the winpdb project on Sourceforge and again has a bug tracker. My sense is that Nir Aides is very good about handling bugs reported in winpdb/rpdb.
Yes I started with rpdb2,
and indeed Nir Aides is very helpfull,
but I think interfaceing rpdb2 is a little too difficult for me,
For now I think pydb is the choice,
better control and more functions than pdb,
and almost just as easy.
If there are things that are unnecessarily awkward, and especially if
you can think of a way to make pydb better (that hasn't been suggested
before), please submit a feature request in the tracker for
pydb. Thanks.
R. Bernstein wrote:
>>Finally, I think rpdb2 is part of the winpdb project on Sourceforge and again has a bug tracker. My sense is that Nir Aides is very good about handling bugs reported in winpdb/rpdb.
Yes I started with rpdb2, and indeed Nir Aides is very helpfull, but I think interfaceing rpdb2 is a little too difficult for me,
I didn't notice your name before,
but I must say Rocky Bernstein is also very helpfull ;-)
thanks !!
For now I'm going to implement a simple interface between my program and
any debugger,
so I can easily change between the different debuggers.
And certainly I've still to read some more docs about the debuggers.
cheers,
Stef This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: softwareengineer2006 |
last post by:
All Interview Questions And Answers
10000 Interview Questions And Answers(C,C++,JAVA,DOTNET,Oracle,SAP)
I have listed over 10000 interview questions asked
in interview/placement test papers for...
|
by: connectrajesh |
last post by:
INTERVIEWINFO.NET
http://www.interviewinfo.net
FREE WEB SITE AND SERVICE FOR JOB SEEKERS /FRESH GRADUATES
NO ADVERTISEMENT
|
by: freepdfforjobs |
last post by:
Full eBook with 4000 C#, JAVA,.NET and SQL Server Interview questions
http://www.questpond.com/SampleInterviewQuestionBook.zip
Download the JAVA , .NET and SQL Server interview sheet and rate...
|
by: Drew |
last post by:
I posted this to the asp.db group, but it doesn't look like there is much
activity on there, also I noticed that there are a bunch of posts on here
pertaining to database and asp. Sorry for...
|
by: Krypto |
last post by:
Hi,
I have used Python for a couple of projects last year and I found it
extremely useful. I could write two middle size projects in 2-3 months
(part time). Right now I am a bit rusty and trying...
|
by: ramu |
last post by:
C# Interview Questions and Answers8
http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html
C# Interview Questions and Answers7...
|
by: ramu |
last post by:
C# Interview Questions and Answers8
http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html
C# Interview Questions and Answers7...
|
by: ramu |
last post by:
C# Interview Questions and Answers8
http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html
C# Interview Questions and Answers7...
|
by: reema |
last post by:
EJB Interview Questions
http://interviewdoor.com/technical/EJB-Interview-Questions.htm
CSS Interview Questions
http://interviewdoor.com/technical/CSS-Interview-Questions.htm
C Interview Questions...
|
by: reema |
last post by:
EJB Interview Questions
http://interviewdoor.com/technical/EJB-Interview-Questions.htm
CSS Interview Questions
http://interviewdoor.com/technical/CSS-Interview-Questions.htm
C Interview Questions...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
| |