Is it possible to use pdb.set_trace() when liveinst is used to run anaconda?
I tried and, if it is suppose to work, there is a bug because it blows up and exits when it hits the first pdb.set_trace()
How do you debug when you have the liveinst environment?
Gene
On Sat, 2014-05-24 at 15:45 -0400, Gene Czarcinski wrote:
Is it possible to use pdb.set_trace() when liveinst is used to run anaconda?
I tried and, if it is suppose to work, there is a bug because it blows up and exits when it hits the first pdb.set_trace()
How do you debug when you have the liveinst environment?
It should work if you also have 'import pdb' somewhere. The prompt of course appears in the terminal window the anaconda was run from.
On 05/27/2014 06:25 AM, Vratislav Podzimek wrote:
On Sat, 2014-05-24 at 15:45 -0400, Gene Czarcinski wrote:
Is it possible to use pdb.set_trace() when liveinst is used to run anaconda?
I tried and, if it is suppose to work, there is a bug because it blows up and exits when it hits the first pdb.set_trace()
How do you debug when you have the liveinst environment?
It should work if you also have 'import pdb' somewhere. The prompt of course appears in the terminal window the anaconda was run from.
Since I originally asked this question some months ago, I "believe" that I did find it to work but I just do not remember. I am doing some experimanting with liveinst again and need to get into the debug environment to see what is going on.
1. This is all with a Fedora 20 LXDE liveinst running as a libvirt/qemu-kvm virtual system. Therefore, anaconda is 20.25.16-1.
2. I am getting an exception so I hit the "debug" button. The anaconda screen "greys out" so I switch to the terminal which started liveinst. Nope, no prompt there.
3. I tried inserting: import pdb pdb.set_trace() into the code. When I start liveinst and it hits the pdb.set_trace(), the anaconda screen disappears and there appears to be an initial pdb prompt but then it breaks out the the regular prompt. Anaconda has died.
Any suggestions?
Gene
On 09/19/2014 02:24 PM, Brian C. Lane wrote:
On Fri, Sep 19, 2014 at 09:27:51AM -0400, Gene Czarcinski wrote:
Any suggestions?
Are you running liveinst from a terminal? That's where the prompt will show up, not on tty1 (as the dialog says).
I am running as a libvirt/qemu/kvm virtual system. The install is for a simple LXDE system. I start liveinst in a lxde terminal window. When it hits the pdb.set_trace() anaconda immediately terminates and I am back to a regular prompt.
I regularly use pdb.set_trace() with regular installs (non-live) to debug things.
Gene
On 09/19/2014 02:24 PM, Brian C. Lane wrote:
On Fri, Sep 19, 2014 at 09:27:51AM -0400, Gene Czarcinski wrote:
Any suggestions?
Are you running liveinst from a terminal? That's where the prompt will show up, not on tty1 (as the dialog says).
I ran a simple test. After sudo su -, I edited /usr/sbin/anaconda and inserted: import pdb pdb.set_trace() and then ran liveinst
Here is the output:
Traceback (most recent call last): File "/sbin/anaconda", line 893, in <module> ksdata = None File "/sbin/anaconda", line 893, in <module> ksdata = None File "/usr/lib64/python2.7/bdb.py", line 49, in trace_dispatch return self.dispatch_line(frame) File "/usr/lib64/python2.7/bdb.py", line 68, in dispatch_line if self.quitting: raise BdbQuit bdb.BdbQuit
Gene
anaconda-devel@lists.stg.fedoraproject.org