debugging

twisted: unhelpful "AlreadyCalled" error

My twisted python program keeps spewing this message ever so often: Unhandled error in Deferred: Traceback (most recent call last): File "c:\python25\lib\site-packages\twisted\internet\defer.py", line 757, in gotResult _inlineCallbacks(r, g, deferred) File "c:\python25\lib\site-packages\twisted\internet\defer.py", line 747, in ...

How do I see the raw HTTP request that the HttpWebRequest class sends?

I know you are all going to answer "use a debugging proxy server like Fiddler" but it's not that simple. Here's my situation: I have some code that runs on a server, in an ASP.NET page code-behind (aspx.cs), which (among other things) establishes a connection to another server, grabs some stuff, and then formats it and returns it to the...

Is ConditionalAttribute supposed to strip out entire lines, or just method calls?

According to the documentation on the ConditionalAttribute class: Applying ConditionalAttribute to a method indicates to compilers that a call to the method should not be compiled into Microsoft intermediate language (MSIL) unless the conditional compilation symbol that is associated with ConditionalAttribute is defined. ...

Debug Applications in JavaFX Mobile Emulator

Is it possible to debug application that is running in JavaFX Mobile Emulator? Would it be possible to enable logging on apps that are running on JavaFX Mobile Emulator? if so how? ...

How do I track down a Heisenbug in some Python code?

Quick background: we have a large source base written in Python. It is a compiler for a domain specific language, and internally everything is represented as directed graphs. These digraphs are built up from sets, and so we use the builtin set type in Python. The problem is that we didn't originally realise that Python actively uses the...

How to get path to flex element through a browser?

Is there any plugin for any browser which can tell me the pass to certain flex element? I mean, I have a flex frontend. And I need to find the full path to some element, like /topLevelPanel/innerPanel/checkbox[0]/img. ...

.NET debugging an existing project

Background / Disclaimer First of all, please feel free to skip this entirely if you can understand the questions below. I'm still very fresh new to .NET, but an elder monkey on bad old ASP in regular VB. I just got into a company with some legacy .NET VB files and now I have a couple of huge projects, with over 50mb of files and about...

Debug is very slow when attache to process aspnet_ws

When working using attache to process aspnet_ws on local computer the debugger work so slowly it can take 5 sec for each line when connecting to external server the debuger run fast what can be wrong ? ...

Memory leak problem with DBExpress

Hi, I've a weird problem with my application, its memory usage goes up a few hundred megabytes at once every now and then and eventually the application freezes. The application is written with Delphi, it uses database, COM (for OPC) and TCP/IP. With FastMM I've got following the screen shot of memory usage. I'm not completely sure ho...

Is there a way to set a dynamic breakpoint in C#?

I have a class in C# that is acting weird. Whenever I perform some action, a property that happens to be a list loses a member. I have no idea why it's doing this. So what I'd like to do is set up a Visual Studio breakpoint that will pause the program the moment this value changes. A conditional breakpoint would not work in this scen...

Problems to scan many images folders

Hi, I have more than 10 sections/articles in a single pages and each section display 3 thumbs. 3 thumbs > linking > to 1 Images_Main Images_Main = thumb1, thumb2, thumb3 Structure: Images |_______ 1stSection |__________ Images_Main |__________ img1 |___...

Condtional Environment Varialbes in Xcode

I would like to create some environment viables in Xcode for heavy debugging such as: NSDebugEnabled NSZombieEnabled MallocStackLogging MallocStackLoggingNoCompact Is it possible to create a new build configuration that is a duplicate of "Debug" where those environmental variables are set to YES, but i can just switch to regul...

What do you do with badly behaving 3rd party processes in Linux?

Anytime I have a badly behaving process (pegging CPU, or frozen, or otherwise acting strangely) I generally kill it, restart it and hope it doesn't happen again. If I wanted to explore/understand the problem (i.e. debug someone else's broken program as it's running) what are my options? I know (generally) of things like strace, lsof, d...

Unable to start debugging on the web server. The web server could not find the requested resource.

I'm having this error trying to debug my ASP.NET MVC app. I've set the app to "Use Local IIS Web server", and selected ASP.NET as the debugger. Running the site without debugging works just fine, but when I try to debug, I got this error: Unable to start debugging on the web server. The web server could not find the requested source. ...

Disable VS' "downloading public symbols"

When I debug my ASP.NET webapp in VS2010, a dialog appears with the title "Downloading public symbols". How do I instruct Visual Studio not to attempt this? ...

Jobs are getting lost in ParallelPython?

I am submitting about 234 jobs (but my example contains only 50 for demonstration purpose) to my 20 node cluster using ParallelPython. I was expecting that it would queue and execute them but it seems to "lose" jobs and I am not understand where things are going wrong. When the script finishes, I am not able to see 50 files i.e. info_1, ...

Debugging .NET framework source code

Hi, I've already read some posts on SO re this issue but couldn't find a solution in them. When I try to step into the .NET framework methods I get the message below on the output window. "Step into: Stepping over method without symbols" But Modules window would show that "Symbols loaded" to the cache directory I have specified. M...

Is there a window dbgview in Linux sytem?

DbgView is the tool for Windows debug. What is similar to Window debug view in Ubuntu/Linux? How to real time read debug message in Linux (same as dbgView in Windows)? ...

What is the similar to printk in user mode?

We can use printk to send debug message in kernal driver. I have a user mode AP that call kernal driver. I would like to output user mode AP debug message with kernal mode driver at the same time. How to do that? ...

Debugging iphone app

How to debug iPhone aplication? How can i find out what's going on in simulator? i'm beginner in xcode development and don't know what's problem with code below.. the app is just crashing on button click.. - (void)viewDidLoad { myLabel = [[UILabel alloc]init]; [myLabel setText:@"Labela"]; myLabel.frame = CGRectMake(50.0,5...