debugging

How to find the value of LastError When debugging .net process?

I get an exception from .net process that is using interop call to win32 api function. I have a debugger attached and I want to see the value of LastError. Is it possible to see the value of LastError from Visual Studio debugger? Two notes: The process that throws the exception is not mine and I can't modify its source code to get the...

Resolving NameErrors -- Getting NameError on RAILS_END in rails_end.rb When using desert plugin and Community_Engine

What's an effective approach to debug NameErrors in Rails? I'm trying to use the desert plugin (0.5.0) and the edge version of Community_Engine. I've started from scratch and gone through the installation instructions. When I attempt to start my server, I get this error: "Constant RAILS_END from rails_end.rb not found (NameError)". Pro...

Getting the caller function name inside another function in Python?

If you have 2 functions like: def A def B and A calls B, can you get who is calling B inside B, like: def A () : B () def B () : this.caller.name ...

Is creating a memory dump at customer environment good ?

I am facing a severe problem with my program, which gets reproduced only in the customer place. Putting logs, are not helping as I doubt the failure is happening in a third party dll. For some reasons, I couldn't get help from the library provider. I am thinking of producing a dump at the point of failure, so that to analyze it offline. ...

Eclipse/PyDev + Django debug

Eclipse/PyDev, Python 2.6, Django 1.1 All is working in run mode. If I put debug point inside manage.py file, breakpoint worked. But when I putted it in any action method, it causes nothing :( ...

Debug console for GWT/GXT

I need to see component tree of the GWT application. DOM tree will be also acceptable. Unfortunatelly GWT hosted browser does not provide access for devToolbar. The only way I found is to compile to javascript and then use regular browser. But compilation takes enormous ammount of time. ExtJS has Debug Console, but I was not able to fi...

How do I inspect the scope of a function where Python raises an exception?

I've recently discovered the very useful '-i' flag to Python -i : inspect interactively after running script, (also PYTHONINSPECT=x) and force prompts, even if stdin does not appear to be a terminal this is great for inspecting objects in the global scope, but what happens if the exception was raised in a function call, ...

Enable/disable debugger support for the currently running JVM from Java code

Is there an interface (maybe part of JMX) that I can use to dynamically enable or disable the JVM debugger support from Java code inside that JVM? (See also http://stackoverflow.com/questions/376201/debug-a-java-application-without-starting-the-jvm-with-debug-arguments —CRM) ...

How to know if a process had been started but crashed in Linux

Consider the following situation: - I am using Linux. I have doubt that my application has crashed. I had not enabled core dump. There is no information in the log. How can I be sure that, after the system restart my app was started, but now it is not running, because it has crashed. My app is configured as a service, written in C/C++....

Why does Internet Explorer close after I finish debugging my web application using VS2008?

Possible Duplicate: Visual Studio - Prevent stopping debugging from closing Internet Explorer When I start debugging my web application in Visual Studio 2008, a new Internet Explorer window opens. When I finish debugging, that new window, along with all previously-open IE windows, will be closed. I'm tired of losing all open we...

How to catch file creation and the responsible caller

Hi, We are using a third part library to render 3d. In this library there is a "memory tracker" functionality that keeps track of all memory the library has allocated and freed during execution. This is a nice feature, since it helps by determining e.g. memory leaks. By calling a certain function in this library a log file is generated...

How to debug JNI/C library?

Hi, We have system here that uses Java JNI to call a function in a C library. Everything running on Solaris. I have a problem somewhere with string encoding. An arabic character is returned by the function written in C, but the JNI methods receives a string with another encoding. I already tried setting $NLS_LANG, and the vm parameter ...

What's an easy way to see what AJAX calls are being made?

I'm looking for something (preferably a Firefox extension) which will allow me to see all AJAX subrequests. Basically, anytime an XMLHTTPRequest() is made, I want to know what URL was being requested and what (if any) GET and POST vars were passed along with it. Unless I'm missing it, I don't see anything quite like this in Firebug or ...

No line numbers on exceptions from assembly generated by CompileAssemblyFromSource

My application has a scripting feature where I compile an in-memory assembly from the user's script using CodeDomProvider.CompileAssemblyFromSource. It's similar to what's described in this answer. It works very well, but any exceptions that get thrown from the script code don't have line numbers in the stack trace. I tried setting the ...

After setting a breakpoint in Qt, gdb says: "Error accessing memory address"

I wrote a very simple Qt program here: int main(int argc, char* argv[]) { QApplication app(argc, argv); QTableView table(&frame); table.resize(100, 100); table.show(); return app.exec(); } And when I try to set a breakpoint where the table gets clicked, I get this error from gdb: (gdb) symbol-file /usr/lib/libQt...

How does one debug a fastcgi application?

How does one debug a FastCGI application? I've got an app that's dying but I can't figure out why, even though it's likely throwing a stack trace on stderr. Running it from the commandline results in an error saying: RuntimeError: No FastCGI Environment: 88 - Socket operation on non-socket How do I set up a 'FastCGI Environtment' f...

Is there a way to trap messages sent to nil in Objective-C?

I've just been bitten by an annoying bug that was made obscure by the "send message to nil is ok" behaviour in Objective-C. I've seen http://stackoverflow.com/questions/156395/sending-a-message-to-nil, and the consensus seems to be 'thats how we roll' in Objective-C. Now, maybe I don't have enough experience in Objective-C, but it seem...

Debugging Object Snapshot

I am wondering if it is possible to 'snapshot' an object when debugging in VS2008, basically I am working with a WCF Service and want to be able to debug my object and spend as long as I want looking at its properties before IIS kills my process. Is it possible to move the complete object into isolation so that I can continue to look a...

How do I view the data in a SqlCE database on a device from visual studio?

I'm debugging an app on a Windows Mobile device and want to view the data in the SqlCE database on the device. I was told to copy the SDF file from the device onto my dev box, but is there an easier way to do it through visual studio without copying anything over? I'm using Visual Studio 2005, Compact Framework V2 and Windows Mobile 5. ...

debugger's block

Do you ever run into a bug where you are just out of ideas and don't know what to try next, and you're getting really annoyed? Are there any general ideas on how to break out of this mode? ...