debugging

Testing if code executes in debug mode

How can i test that the code executes in debug mode. Here is what i would like to do in pseudocode if not debugMode then Do something() end if ...

Programmatically stop Javascript execution in FireFox/FireBug

I am currently debugging complex Javascript/AJAX code written with mootools with FireBug. I am looking for a way to stop the JS execution as if it was a breakpoint programmatically. Ex: instructions ... degugger.breakpoint(); // the execution stops here as if a breakpoint was // manually set other instructions .....

How to connect Adobe Air client side with Java VM Debug Interface?

Hello: I'd like to know if/how would it be possible to connect Adobe Air application to Java VM Debug Interface? I have some objects residing on server side and don't want to change the code there and server already allows to do remote debugging. Here's the information about JPDA: http://www.j2ee.me/j2se/1.3/docs/guide/jpda/architectu...

Trace dynamic library calls of ruby C extension

For debugging purposes I want to get some call traces of a ruby app which uses an extension library to interface with a C lib. I found http://unroller.rubyforge.org/ which has nice output but not for the library calls. I want ltrace for ruby extensions. thx Update: I'm after a bug and don't know if its the ruby extension or external l...

What is the fastest way to inject some logging on a live web application?

I have a live web application that is failing in one specific scenario, and locally it works fine. I don't have remote debugging setup, and I want to check the value of some of the variables in the code. What would be the fastest way for me to log/email/debug the code to view those values? Just to be clear, there is no error/exception...

Debugging in visual studio 2008 freezes entire system

Any time i try to debug in visual studio 2008 my entire system will freeze whenever a breakpoint is hit. I can move the mouse around and that remains responsive but nothing i click on does anything, I can bring up the task manager but can't do anything with it and i am able to lock/unlock the machine. I tried a fix that i found via go...

How do you fix a bug you can't replicate?

The question says it all. If you have a bug that multiple users report, but there is no record of the bug occurring in the log, nor can the bug be repeated, no matter how hard you try, how do you fix it? Or even can you? I am sure this has happened to many of you out there. What did you do in this situation, and what was the final outco...

Is it possible to programmatically debug one's own .NET process

.NET provides an API to debug programs: http://msdn.microsoft.com/en-us/library/bb397953.aspx Is it possible to debug a thread in the same process? In other words, is it possible to have the debugger and debugee in different threads in the same process? ...

How to: debug an ASP.NET Web-Service when called from a win-application

I have a windows forms applications that accesses a web service. I want to debug the web service so that when I call its methods from the win-app it should stop on the breakpoints within the methods. ...

Top Visual Studio Debugging Tools/Features

Which debugging feature of the Visual Studio IDE do you use the most. I agree that it depends on the scenario. But it turns out that people tend to use some features very often (eg Stacktrace) and some very rarely. ...

dbxtool on 64-bit linux won't load 64-bit version of dbx?

I am using the Linux version of dbxtool to debug a 64-bit programme called frankie: file ../support/frankie ../support/frankie: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), for GNU/Linux 2.6.4, not stripped When I attempt to load the executable within dbxtool, I g...

Debugging an IE(7) plugin (BHO)

When I start debugging my IE7 BHO, I often have a strange case where IE 'hangs' and doesn't load its homepage for at least 3min (and probably never). IE itself is responsive (menus, min/max, close etc.) but even attempting to navigate also gives infinite load times. This happens in debug mode via VS2008, but not in release mode when the...

Debugging One Website In A Solution Of Four

I have a solution with four websites in it, when I debug a website I get four instances of the ASP.Net deployment server, can I just debug one website and not run the others? ...

How can I watch log messages as they are written?

I am debugging a new application that is crashing. I want to watch the messages as they are being written to the log. What command should I use? ...

Attribute to add to an Interface for the default concrete class?

This probably isn't possible, but it's annoying enough to try... For convenience sake I'd like to be able to select "Go to definition" on a property or method on a variable defined as an interface and have Visual Studio go to the concrete implementation instead of the interface. Is there an attribute or something that I can use to instr...

Disable assertions in Python

How do I disable assertions in Python? That is - if it fails, I don't want it to throw an AssertionError, but to keep going. ...

How to get the stacktrace in a mobile device?

I'm getting a NullPointerException in a Nokia S40. I want to know what is causing this exception. The device shows: NullPointerException java/lang/NullPointerException This error only occurs in the device, running in the emulator the application works fine. I use microlog to debug my application. But the application works fine i...

gcc/gdb: How to embed absolute path to source file in debug information?

hello. i am just wondering if i can tell gcc to embed the absolute path to a source file in the debug information, even if i call gcc like gcc -g ../src/somecode.c -o ../bin/somecode.o as i see it atm, gcc just stores what you provide, so if you provide a relative path, at the end, gdb only knows the relative path as well. is there ...

Is there a Microsoft SQL Profiler equivalent for Oracle

Hi, 99% of my time is in SQL Server land and so I'm not at all familiar with Oracle or its products...Is there a similar application to Microsoft SQL Profiler for use against Oracle databases? I'm helping debug/tune an ASP.Net application that connects to Oracle using ODAC etc thanks heaps! ...

Asp.Net: Debug website in iis

Is it possible to debug an Asp.Net website running on iis? I am able to debug an Asp.Net web application project, but not a web site, and wanted to know if this is by design or am I missing something. ...