debugging

Where is the Debug -> Exceptions window?

I must be slow or something today, I cannot find this menu option. I attached a screenshot of my IDE's Debug menu: Any ideas? ...

How do you automate the launching/debugging of large scale projects?

Scenario: There is a complex piece of software that is annoying to launch by hand. What I've done is to create a python script to launch the executable and attach gdb for debugging. The process launching script: ensures an environment variable is set. ensures a local build directory gets added to the environment's LD_LIBRARY_PATH var...

Reporting information during code execution: best design

I always had doubts when it comes to designing proper report of execution. Say you have the following (stupid, to be simple) case. I will use python. def doStuff(): doStep1() doStep2() doStep3() Now, suppose you want to give a report of the various steps, if something goes wrong etc. Not really debug: just informative beh...

How can I print type attributes in GDB?

Is there a way to print a type attribute from inside GDB? E.g. Integer'Size. ...

Best method for debugging a called webservice in php?

I have an n-tier system where a frontend templating layer makes calls out to a backend application server. For instance, I need to retrieve some search results, and the frontend calls the backend to get the results. Both the templating engine and the appserver are written in PHP. I currently use PHPed to initiate debug sessions to the t...

Debugging on Linux for Windows Developer

Primarily I've done basic (novice level) software development on a Windows machine, but I've always had MS Visual Studio to help me step through the process of debugging. Now, however, it looks like I will be on Linux, so in order to get ready for the jump I want to make sure I have a tool/tools lined up to help me step through the co...

How can (re-)enable VS2008 Pro to debug javascript in IE8?

Since I installed IE8 (Win XP) Visual Studio 2008 Pro stopped deebugging javascript. When I set a breakpoint on a line javasscript code and start debugging , I doesn't get hit anymore. This worked well when I had IE7 installed. The code hasn't changed. There were no other system changes performed at the same time. How can I solve this ...

Debugging ASP.NET MVC framework

What do I have to do in order to be able to step into ASP.NET MVC framework functions when debugging my own ASP.NET MVC application in Visual Studio 2008? I've currently installed the framework via the MSI installer. ...

How do I use gdbmacros.cpp in QtCreator?

I'm trying to debug in QtCreator on Linux and I get the message: The debugged binary does not contain information needed for nice display of Qt data types. You might want to try including the file .../share/qtcreator/gdbmacros/gdbmacros.cpp into your project directly. Adding ~/qtcreator/gdbmacros/gdbmacros.cpp to my ...

jQuery Execution?

My jQuery script has a glitch animating a div position. The bug seems to occur when I click the link right as the page is loading. ...

How to debug JVM resources loading?

Hi everybody, this is my first question here in stackoverflow (and I hope not the last one :P). To debug class loading in a JVM we can use the param -verbose:class, but... Anyone knows how to debug resources loading (e.g. properties files)? Thank you in advance! ...

Why does the debugged program slow down so much when using method entry debugging?

I'm using jdi interfaces to create a debugger and when I use MethodEntryRequests to enable method entry tracing the debugged program slows down by factor of tens. I have set filter for main thread and suspend policy to SUSPEND_EVENT_THREAD. Classfilter is limited and if I print any received events it doesn't show more than couple of doze...

Debugging WCF Exception causes CommunicationException

I am introduction the use of FaultException in to our WCF services. To test this is I created the following function on the server: public void ThrowException() { try { throw new ApplicationException("This is a test exception"); } catch (ApplicationException ex) { thr...

debug IE6 JavaScript within Eclipse

Hi, I'm looking for an Eclipse plugin that will enable me to debug JavaScript running in IE6. Ideally, I'd like to be able to just attach the debugger to a running instance of IE6, but if I have to start IE6 from within Eclipse, I could live with that. Thanks, Don ...

Why does my collection decide to start at 0 instead of 1?

I'm having a problem where a collection of objects isn't being accessed correctly when run on a thread from a service. I can run my unit tests fine in VS2008 but when I attach the debugger to the service i can clearly see that it's not starting at the 1 based index but instead at the 0 based index. I've tried everything that I can thin...

Xcode debugging: View value of NSNumber ??

Is it possible to see the numeric value of an NSNumber in the debugger datatip on in the variable watch window? I store an Integer value in NSNumber and want to see this value during debugging. I tried some of the data formatters in the debugger already, but it wasn't much help. ...

running DOS Debug script

the following script works fine if I type it line-by-line in debug. When I copy it to a file called script.txt, it hangs up after "enter 3 numbers". I run it like so: D:>debug < script.txt the file is: a mov cx, 3 jmp 0119 db 0d,0a,"enter 3 numbers",0d,0a,"$" mov dx, 0105 mov ah, 09 int 21h mov ah, 01 int 21h and al, 0f add bl, al mov...

Debugging a Process.Start()'ed application

I have a C# class library (which is an AutoCAD .net application) and a console application. Somewhere in the class library, it starts the console application using Process.Start() I have both of these projects with the same solution, I have set the class library as the startup project (to launch AutoCAD). I can debug the class library,...

How do I retrieve the name of the lowest subclass from the context of the superclass in Java?

Rational I would like to have more detailed logging debugging/logging output on a few superclasses, so the subclass name will not actually be effecting real-time performance nor application logic. I'm also of the opinion that it is fairly bad design to do this normally, however I really do want this info to be logged during development ...

How do I force a process to break when debugging if I don't know where to place the breakpoint?

How do I force an asp.net app to break in VS 2008 when I don't know what code the process is hitting? I am getting a problem where there seems to be something looping in the code and after putting in a bazillion breakpoints in can't find it. I want to force the app to break so that I can see where the problem lies. ...