debugging

using Hood with Show instance

How can I use any user data type which derives from Show with Debug.Observe.observe? data MyData = Foo | Bar deriving (Show) myFunc = consumMyData . observe "Debug: " . produceMyData consumMyData :: MyData -> ... produceMyData :: ... -> MyData main = runO $ myFunc So I can avoid writing: instance Observable MyData where observe...

How to read the C++ CLI .obj files (result of compilation of a single file).

I have a small (<300 lines) C++ file in a C++ CLI project in Visual Studio 2010. I have crafted some macros which do different things depending on the Debug/Release configurations. I would like to be able to look at the resulting .obj files (when I compile in Debug and Release) and be able to compare the two. The hard part is that files...

php debugging on a Mac?

Hi, I've seen these answers: http://stackoverflow.com/questions/1693677/debugging-php-on-mac but I am hoping that there is a better/newer solution. I am a system-level developer (C/C++/x86) but totally new to the web/scripting space. I feel that I would do well do setup a solid debugging environment - it is usually a great way for me...

automatically attach a debugger to a new Java sub-process in Eclipse

I hava a Java process that spawns a new JVM using ProcessBuilder etc. While debugging this, is it possible to have Eclipse attach a debugger to the new sub-process? Even better, is there any plugin that will do this automatically when it notices the new child process? I'm told (though haven't seen) that VisualAge used to be able to do t...

Visual Studio finish application on Exception

I have some places in the C# application where potential Exception's are not catched, but there is a try-finally block to release resources before crashing in case of an Exception. When I run the code in Visual Studio and an Exception occurs, it breaks at the corrsponding line, marks it yellow and describes the exception. That's fine. ...

debugging javascript error in ie7?

All I get is this: An error has occurred in the script on this page line: 31 char: 5 error: expected identifier, string or number code: 0 url: http://example.com It's difficult to find that line since I have several external and internal scripts. How can I debug this? (By the way, the scripts have no errors in chrome or firefox or ie...

Java is reporting errors running the A+ Learning System. Any ideas how to fix them?

I work for a local school district part time. They run a piece of software called A+ learning system. It uses the java runtime environment to do what it does. On one of our computers, it isn't running; opening a command prompt and typing out: java -jar als.jar gives the following error messages. C:\als30\alsclient>java -jar als...

Why is args.xamlFile blank in Silverlight debugging

In the standard error handler for Silverlight apps, there is reference to args.xamlFile: if (errorType == "ParserError") { errMsg += "File: " + args.xamlFile + " \n"; errMsg += "Line: " + args.lineNumber + " \n"; errMsg += "Position: " + args.charPosition + " \n"; } For some reason, lineNumber and charPosition get populat...

Processid (PID) reuse problem with xCode

I have a large custom CMS and I use xcode to run a profiler to get debug information. So, I perform different functions in my CMS and "HOPE" to get ALL information via xDebug. Lets say I perform two functions: 1. Load a listing of users 2. Deleted a user 2.1 Calls an AJAX script to delete user. Now, due to the process id reuse...

Debug Android.mk

Hello all, I am building Froyo, is it possible that during building, make/python can output the file and the command it is calling right now. For example, in one of the Android.mk, there is a line, says, echo build success. On the monitor it will show "build success", what I want is that in addition, it shows "Android.mk line 20: ech...

Edit and Continue is not working in VS2010

for some reason this no longer works. I ugraded the winforms solution from VS2008 to VS2010 and on new machine also Windows 7 64bit but id does not allow edit and continue I haver set the options to enable it and to compile against 86 cpu any ideas? ...

IE Debug Toolbar missing feature

can I in IE Debug Toolbar view resource loading like in FireBug for FF on "Net Tab" I want to see which files loaded, js, images and so on can I see Ajax request for example? thanks in advance ...

C++ Program quits unexpectedly, how do I debug this with gdb?

Hi Everyone, I am writing a program that runs some unit tests on code that that been written by my colleagues. I am using the Google C++ testing framework. I run a function that spawns 3 threads, and then runs for 30 seconds. After it runs, the program exits with status 0. This is not the expected behavior, obviously. I know it doesn't ...

Visual Studio: Simultaneously develop WCF client and server

I need to develop a WCF server (basically a web service which will eventually run in IIS) and a client application that accesses the service. I have both the client and the server project in the same Visual Studio (2008) solution. What's the recommended way to connect the client to the server during development? Two possible solutions ...

Debug stored procedure from Visual Studio 2005

Hello, i'm missing the "Step Into Stored Procedure" option when i rightclick a Stored Procedure in Server Explorer/Data Connections. This is neither a problem under Windows XP(development pc) nor with Windows Server 2003/64 bit(old productive Server). But under Windows Server 2008/64bit there is not an option to debug a stored procedure...

Programmatically determine if .NET WinForms application launched via debugger or not

Hello, I would like to know if there is a programmatic way of determining at run-time if the application was launched via the debugger or by launching an installed version of the application. My app is currently being deployed via ClickOnce. There are certain settings I would like to alter when the app is run in debug mode vs productio...

Ruby's gsub for rearranging a string.

Suppose I have a string like "abc | xyz" and I'd like to turn it into "xyz | abc" using only a regular expression substitution. (For this example there may be better ways, but this is a stand-in for something hairier.) The following code doesn't do what I expect: x = "abc | xyz" x = x.gsub(/^([^\|\s]*)\s*\|\s*(\S*)/, "\2 | \1") puts x...

XCode 3.2.4 buggy debugger?

Hi! i'm developing iPhone apps. Yesterday i updated leopard to snow leopard. Alongside i made the jump from XCode 3.1.4 to 3.2.4 I was always quite happy with XCode - working most of the time under windows, I really appreciate how well the XCode toolchain works together. however - i'm not happy with 3.2.4 at all. i experience a lot of...

debugging VS 2005 prompts an "Operation not supported"

Hi! I've been debbugging VS 2005 and set the 'Start external program' to C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe But after hitting F5 I got this error: Error while trying to run project: Unable to start program 'C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe Operation not supported....

Script error: "An error has occured in the script on the page"

I get a error on my JSP page: Script error: "An error has occured in the script on the page" When I try to run the Eclipse in the debug perspective and I am closing down the browser window of the eclipse where my application is running. Because of the error the application hangs, and I am unable to test my application. Is there any sol...