473,715 Members | 2,156 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

pdb attach?

Hello,

please, is there something like 'attach' in pdb yet? My application uses
threads
and when it freezes (e.g. due to a deadlock situation), I'd like to get
the traceback
of all threads and inspect at which point did the application get into
problems.
Or could I send a signal to such a python process so that it would
output backtraces
from all threads before terminating?

Because currently, if a thread runs into deadlock problems (or a thread
fails on
an exception and the other thread can't join it), I have no way of
determining
what went wrong.

Such processes are not possible to terminate via CTRL-C in the
interpreter, so
I can't get the backtrace this way. Furthermore, I also need to debug
subprocesses,
so these are difficult to invoke interactively.

I'm happy for any suggestions.

Thank you,
Hynek Hanke
Sep 20 '07 #1
1 4465
Nir
On Sep 20, 3:26 pm, Hynek Hanke <ha...@brailcom .orgwrote:
Hello,

please, is there something like 'attach' in pdb yet? My application uses
threads
and when it freezes (e.g. due to a deadlock situation), I'd like to get
the traceback
of all threads and inspect at which point did the application get into
problems.
Or could I send a signal to such a python process so that it would
output backtraces
from all threads before terminating?

Because currently, if a thread runs into deadlock problems (or a thread
fails on
an exception and the other thread can't join it), I have no way of
determining
what went wrong.

Such processes are not possible to terminate via CTRL-C in the
interpreter, so
I can't get the backtrace this way. Furthermore, I also need todebug
subprocesses,
so these are difficult to invoke interactively.

I'm happy for any suggestions.

Thank you,
Hynek Hanke
Try to debug with winpdb:
http://www.digitalpeers.com/pythondebugger/

Any feedback will be appreciated.

Sep 21 '07 #2

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

Similar topics

0
1845
by: gen_www | last post by:
I am running an applet in Internet Explorer using <Object> tag and trying to attach to it using Netbeans IDE. However Netbeans is not able to attach to the applet. However I can use Netbeans to attach to Weblogic server. a) Have read various documents on various websites including http://java.sun.com/products/plugin/1.3/docs/debugging.html b) My classes are compiled with -g option. (Attaching to VM fails, so I dont think that's an issue...
15
3717
by: tabonni | last post by:
Hi I try to grab the checked files from HTML page and then send those PDF files as attachments. It can just send email, there are no PDF files attached. Can anybody point out my error? My idea is: When people check the check boxes in HTML page for the PDF files, it will transfer the files' name to ASP page. Then, it will attach it in the email.
4
1749
by: donall | last post by:
i have a DLL which implements a HTTP handler, written in C#, and have deployed it on IIS 5.0, on XP service pack 2. six months ago, i was able to debug it by attaching CLR to the process (aspnet_wp.exe). now i can't attach to the process any more. when i select the process from the list, and then select to attach the CLR, i just get a dialog box saying "Cannot attach to process". there is no more info, nothing to direct me further....
7
2754
by: Greg P | last post by:
I know this is a long post, please bear with me. I have been working on this all weekend to no avail although I have done a good amount of research (see most pertinent links that I've looked at below). Please help me get through this!!! I'm having some serious problems attaching a .mdf file and accessing it. I have a WroxUntied.mdf that I want to attach and then run the website that uses it. This is a .mdf file from wrox books. This file...
4
1712
by: John A. Bailo | last post by:
I am debugging a windows service that consumes a web service. I set breakpoints in both. Sometimes, after attaching to the windows service, the debugger will auto-attach and run to my breakpoints in the web service. Other times not. My workaround is to attach to both the aspnet_wp.exe process and my windows service, but I wonder why it auto-attaches sometimes and not others.
9
6944
by: ME | last post by:
I have a application that someone else has wrote that runs in a console window. It does not take parameters, but when running it asks three questions and then exits. I would like to write a small utility to attach to the console app, send the necessary answers (typically typing the letter "y" and enter) and then leave. Is this a possiblity for .net? If so what would be the best approach? Thanks, Matt
1
2104
by: Martin Simard | last post by:
Hi all, In VS 2003, when I attach to a remote process for debugging, I can see the list of modules loaded by the process before attaching to it. This list is not there anymore in VS 2005. Instead, I just have a warning for security reasons and 2 buttons (Attach | Don't attach). Let me explain a bit... I have several web applications running on different servers. All servers are XP 2003 Servers with IIS 6. My applications runs in...
0
2516
by: Lexxzy | last post by:
Hi to all, I've a problem about to attach a recovered database file in the enterprise manager. My problem goes this way, I want to attach a recovered database file. So when I followed this steps: 1.) Open enterprise manager. 2.) All task and then attach database.
9
7809
by: dpatel75 | last post by:
I am trying to copy a database from a SQL 2000 SP3 Windows 2000 server to a 2005 SP2 Windows 2003 server. I am trying to use detach and attach method (have tried both within Management Studio and T-SQL) and experience an error when attaching to the 2005 server: "CREATE FILE encountered operating system error 5 (error not found) while attempting to open or create the physical file 'xxxxxxxxxxxx' (Microsoft SQL Server, Error: 5123)" I have...
6
3224
by: GaryDean | last post by:
I see some references on debugging by attaching to a process. There are MSDN articles that show how to attach to a process for debugging. However, I can find no info on how exactly to get the debugging to work. I have a wizard page in the anonymous section of my website. If I run it as the startup page in VS it runs fine. But if I link to it from an external link, it gets "object reference not set to an instance of an object" when I...
0
8715
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9193
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...
0
9037
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7963
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6641
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
4472
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...
1
3170
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
2531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2116
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.