debugging

Debugging generic functions in R

How do you debug a generic function (using debug, or mtrace in the debug package)? As an example, I want to debug cenreg in the NADA package, specifically the method that takes a formula input. You can retrieve the method details like this: library(NADA) getMethod("cenreg", c("formula", "missing", "missing")) function (obs, censored,...

Advanced System.Transactions debugging

Are there any tips, tricks or methods for obtaining profiling/logging/debug information on the runtime behaviour of System.Transactions.TransactionScope? I have an application which is committing data to the database, even though I'm using System.Transactions.TransactionScope, where an exception is thrown and TransactionScope.Commit() i...

Is there a way in the Eclipse debugger to be notified when the state of a Java object changes?

I'm debugging some legacy code where we have a cached object that appears to be changed externally. If I know the object identifier for it (while debugging), is there some way to "watch" it so that if some other code in the same thread or another thread attempts to modify its state it'll trigger my debug? I can't use just an expressio...

Make Flex Builder debugger start listening for incoming debug session connections

Is there any way to get Flex Builder to connect to an existing browser session running Flash Player Debugger? I can connect to FDB like this, but with Builder I need to click Debug and rush to close the newly opened browser window before it loads the Flash file and then go back to the session I want to connect and right click it to start...

How can I debug objects loaded from the app.config using reflection?

I have some code that references an outside DLL which in production will be loaded by a factory. The DLL shouldn't be referenced directly by my assembly, it will be loaded at runtime using Assembly.Load(). This all works just fine, but when it comes to debugging, I want to be able to step through the library as if I'd referenced it usi...

Possible to have Debug session go from one Visual Studio Solution into another?

I have two VS 2008 solutions I'm working with. One is a web app calling components built in the other solution. Is it possible to somehow start a debugging session in the web solution and have it hit breakpoints in the second solution (cue laugh track)? I'd prefer not to have to add the various component projects to the web solution i...

Javascript, Firebug: How do I have multiple views or what is the right of way of doing development?

Most of my javascript work is done with Firebug and I feel annoying most of the times having to switch between the HTML mode and console mode (which again I split into output mode and input mode). When I switch to a different page to see the HTML and come back, I lose the code that I write. What is the best way to go about developing jav...

Doesn't get into Debug Mode

When I Press F5 on my VS2005 to debug the application, it launches the web app window but it is coming out of debug mode. When I tried to trace the Error in the EventViewer, this was the error: Failed in Token.vb(GetToken). The token was not in memory and the identity of the authenticated IIS caller was not permitted. The session may ...

JavaScript debugging in FireFox

In Internet explorer, when there's a JavaScript error, I get a little popup that tells me so. This doesn't happen in FireFox 3. How do I enable this in FF? I realize this isn't a programming question per se (please don't close this question; forgive me!), but I'm trying to debug some JavaScript and it'd be really nice to see these messa...

How to find out where a COMMIT might be happening?

I'm refactoring some code, converting a number of related updates into a single transaction. This is using JDBC, MySQL, InnoDB. I believe there is an unwanted COMMIT still happening somewhere in the (rather large and undocumented) library or application code. What's the easiest way to find out where this is happening? There must be s...

More fun with stupid Firebug errors

test.html: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd" xml:lang="en"> <head><...

How to use GDB to debug a big project?

Now I have a c language project which include three directories /bin, /inc and /src. All of header files (.h) are included in /inc and all of source(.c) files are stored in /src, i.e. a.c, b.c, c.c..., the final generated executable file will locate in /bin. after compling with makefile, all of obj files will be generated in /src/obj li...

Attach XCode Debugger

Hi there, I'm developing an iPhone app that needs a web login. As usual I call [[UIApplication sharedApplication] openURL:loginURL]; This close the app and calls the login page inside Safari. Once logged, the app is opened once again using a callback address and the iPhone URL registration feature. The question here is: Since the ap...

Pause Debugging session in Visual Studio

Is there a way to avoid Visual Studio from going to another file when pausing a session? If you’re debugging a class somewhere else and the code is called from a form which in turns executes a ShowDialog(); (or similar), if you suddenly pause the application, Visual Studio will switch to the file (which sometimes is the Main() method). ...

Testing Google Wave Gadget outside Google Wave?

I wonder if there is a tool/framework available that supports testing Google Wave Gadgets outside Google Wave. I know these two emulators (1 and 2), but I still always would have to upload my gadget for every debugging run. I am looking for a tool that displays the current state, allows to modify the state and to send the state back to...

windbg will not break in on hung system(kernel debugging)

I have a target system that is consistently hanging. After the hang I get no response at all, I can't ping it, the NUM LOCK and CAPS LOCK keys do not toggle the associated lights on the keyboard. I am currently attached to the system using kernel mode debugging over rs232. When the system hangs I am not able to break the debugger usi...

.net 3.5 IIS7.5 website can not be debugged - "Specified cast is not valid."

I'm trying to migrate an IIS6 site to 7.5, and in the IIS Manager's status section, I see "Unknown:Specified cast is not valid. (http). I've configured a base site that's just binding on port 80 to http. This doesn't stop the site from running. It does stop me from debugging though. When I hit F5 in VS, I get: "Unable to start debugg...

Debug symbols in release mode

On an ASP.NET 2.0 website I log details of unhandled exceptions. I would like to log the source filename and line number, but I don't get this in the stack trace when an exception occurs. The reason for this is that I have debug="false" in the web.config compilation settings (it's a production site), therefore no PDB files are being gene...

Still the problem of debug project with GDB tool

Here is more specific explanation of what I want to make clear: I have some source c files locate under JM/lencod/src ; and some header h files locate under JM/lencod/inc ; and a Makefile locates at JM/lencod ; After I compile these source files using Makefile, some of obj files will be generated under JM/lencod/obj , meanwhile a len...

How do I get text into Visual Studio Output Window using STL IO?

I always thought the output window for a MSVC++ app running in the debugger was mapped to one of the standard output streams. But When I run this code in a Windows MFC app, nothing is seen: std::cerr << "cerr"<<std::endl; std::cout << "cout"<<std::endl; std::clog << "clog"<<std::endl; Is this a Windows thing or a VC++ thing? How are f...