debugging

How to draw a tiger with just 3 lines?

Background: An art teacher once gave me a design problem to draw a tiger using only 3 lines. The idea being that I study a tiger and learn the 3 lines to draw for people to still be able to tell it is a tiger. The solution for this problem is to start with a full drawing of a tiger and remove elements until you get to the three parts...

Why are the debug symbols lost in the LLVM compile/link process?

I wrote an LLVM transformation that basically replaces mallocs by kind of guarded mallocs and some other stuff. I'm using clang (or llvm-gcc) for compiling a c file to get a bitcode file (using the -emit-llvm option) which contains debug information. These also contain method names, line numbers and so on. Afterwards I'm using opt to i...

Debugging in Clojure ?

Hi, What are best ways to Debug Clojure code, while using the repl in Clojure-box ? ...

Running and debugging JBOSS source code

Hi, My question is not about how to debug JEE web application running under JBOSS. My question is how to debug JBOSS itself. I am running into some problem with JBOSS server. I have googled a lot but with no avail. Finally I decided to dig into JBOSS source code and figure out the problem there. I have downloaded the source code. It...

Experience with .NET Reflector Pro

Hi, do you have an experience with .NET Reflector Pro (not the free version)? I searched for some way how to easy debug application in external enviroment (for example: production server out of office/developer domain) and I found feature "Step through decompiled assemblies and use all the debugging techniques you would use on your own...

See POST parameters in Java EE eclipse debugging

I'm not experienced in debugging Java EE (I'm rather a javascript guy) and I need to see what HTTP POST parameters get to the server side. I put a breakpoint in a jsp file that the form is pointing its action to and now I can't find the POST content in the debug variables window. Where are they? How can I lookup the POST in debug? [I'...

How can I stop the Visual Studio debug window appearing when a process crashes?

I have a server that runs processes that are playing up. We have a third-party process monitoring service running that will detect when a process dies. However, the server also has VS 2005 installed. When the process fails, it displays the 'Choose Debugger' and doesn't actually quit. Our process monitoring doesn't detect a missing proc...

Is there a plugin for visual studio 2008 that will allow you to use Linq in a watch window?

I am working in Visual studio 2008 and would like to be able to use Linq in a watch window. Is there a tool that will allow me to do that? ...

Debugging techniques for Google App Engine development with Python

I'm new to both Python and Google App Engine development and find myself at a loss on how to effectively debug my apps during development. I come from a C#/ASP.NET background where I can typically step through the code in Visual Studio. However, when using a text editor and running dev_appserver.py from a command line, I don't have the...

Debugging mysterious PHP requests

Whenever I get a 404 our logout script is being called mysteriously. What should be happening is our custom ErrorDocument defined in the root .htaccess file should be redirecting to a static HTML page, without any external logout actions being initiated. I'm using Zend Studio's debugger and at first everything goes as expected -- it se...

Debugging long dynamic sql in SQL Server 2008

Hi, I have some dynamic sql statement which bombs under certain conditions, so I am trying to debug it. it gets built like so: declare @sql varchar(4000); ... select @sql = '<part1>'; ... select @sql = @sql + '<part2>'; ... select @sql = @sql + '<part3>'; ... begin execute(@sql); select @ec__errno = @@error if @ec__errno != 0 b...

Remote debugging won't stop at breakpoints

I'm having a problem with xdebug not stopping at breakpoints when using remote debugging (everything is fine when running scripts via the command line). It will break at the first line of the program, then exit, not catching any breakpoints. It used to work fine, until I switched over to using MacPorts for Apache and PHP. I've tried re-...

Set a breakpoint at a given line number in Adobe's FDB?

I'm learning the Flex command-line debugger, and I haven't been able to find information on this particular use case. I'd like to add a breakpoint to a specific line in one of my class files. I can add breakpoints at the start of a function in a class, but I can't figure out how to set it at a specific line (e.g. line 117 in Foo.as)? ...

Visual Studio 2008 SP1 - How to stop debugging in other browsers than IE?

Visual Studio has integrated debugging in IE, when you close IE, it stops debugging, and if you stop debugging, VS closes IE. I want it to do the same thing with firefox/chrome! (mainly this 2, if is it possible with others, it'll be appreciated!) Is there a way to do this? Thanks in advance! ...

How to diagnose source of failure in F# interactive

I am learning the ropes of F# through Project Euler, and ran into the following issue a few times. I write a function, run it in the F# interactive window, and the program hangs there. I suspect the function is failing, but I am not getting any significant error message which would help me figure out what is going wrong. Is there any way...

Debugging EXC_BAD_ACCESS from a NSString

Hello All, I had a EXC_BAD_ACCESS message in my console. I read about the environment variables NSZombieEnabled and MallocStackLoggingNoCompact on this site. I created my environment variables: NSZombieEnabled = YES and MallocStackLoggingNoCompact = 1. In the console, I saw 2010-03-01 19:13:46.924 CruzNomad[7952:207] * -[CFString...

Zend framework: How to detect environment(dev/prod) in code

I use Zend_Mail component in my application for sending mails via SMTP protocol. And I want to persist my messages to files when I'm in development environment(accordingly to application.ini). How can I detect in my controller action whether it is development or production/staging environment? ...

Debugging a minidump in Visual Studio where the call stack is null

I have a customer who is getting a 100% reproduceable crash that I can't replicate in my program compiled in Visual Studio 2005. I sent them a debug build of my program and kept all the PDB and DLL files handy. They sent me the minidump file, but when I open it I get: "Unhandled exception at 0x00000000 in MiniDump.dmp: 0xC0000005: Acces...

jQuery animation bug: .slideToggle causes content to overlap during the animation in FF & IE, Safari is fine. What could cause this?

First of all here is a link to the dev site I am currently working with. It features the form fields that are being animated using .slideToggle() .slideUp() & .slideDown(). Link: http://dev.supply.net.nz/copper/index.php/site/talent/ The CMS is Expression engine, but that shouldn't matter in this case. Basically what you'll see happen...

How to find problematic thread in Eclipse remote debugger?

I have a web application running in a jboss application server (But it is not jboss specific so we could also assume it is a tomcat or any other server). Now I have the problem that one thread seems to be in dead-lock situation. It uses 100% CPU all the time. I have started the server with enabled debug port and I can connect Eclipse to ...