debugging

Call log() from Model in CakePHP

How can I call the log() function inside the model beforeSave() function? All three variants I used didn't work: function beforeSave() { #... Debugger::log($y.' '.$ty); log('test'); $this->log('testmodel'); } ...

What kind of safeguards do you use to avoid accidentally making unintended changes to your production environment?

Because we don't have a good staging environment we often have to debug issues on our production systems. We have web, application, and database servers. What kind of safeguards do you use to avoid accidentally making unintended changes to your production environment when doing this? EDIT: The application is a very complex B2B verti...

Good memory profiling, leak and error detection for Windows

I'm currently looking for a good memory / leak detection tool for Windows. A few years ago, I used Numega's Boundschecker, which was VERY good. Right now it seems to have been sold to Compuware, which apparently sold it again to some other company. Trying to evaluate a demo of the current version has been so far very frustrating, in th...

Is mod_wsgi/Python optimizing things out?

Hello all, I have been trying to track down weird problems with my mod_wsgi/Python web application. I have the application handler which creates an object and calls a method: def my_method(self, file): self.sapi.write("In my method for %d time"%self.mmcount) self.mmcount += 1 # ... open file (absolute path to file), extrac...

Updated OpenCV : no cam image with F5 but it works with Ctrl + F5 on visual c++ /winxp

I changed opencv (actually highgui) to allow the cvSetCaptureProperty with CV_CAP_PROP_FPS using the latest inputvideo lib. But now, when i run my application using F5 in debug or release mode the picture is black on visual c++ 2003 or 2008 express. But it works with Ctrl + F5 (and the frame rate is changed too). Do you have any idea why...

Eclipse - Unable to install breakpoint due to missing line number attributes

I am getting this strange error in Eclipse while trying to set a breakpoint. Unable to insert breakpoint Absent Line Number Information Ticked the checkbox from Compiler options but no luck. Thanks ...

Anyone using yui logger to track yui events? Is there a way to filter it?

The problem that I'm having with it, is that it tracks all the events in the log reader, too. This makes it very difficult to work with. As I scroll up down, click or move in the reader to examine events, it's scrolling all over the place adding new events. Is there a way to filter it to only include certain events from certain sources? ...

are there any XDebug alternatives for debugging PHP?

I'm using Vista and need to debug PHP, XDebug crashes in Vista, I tried several suggestions but nothing works. Are there there any other alternative to XDebug that works on Vista and with Eclipse PDT. Easy to install is a plus :-) Edit: also I have Ubuntu in other PC, so any debugger for Ubuntu will work too. In the package list is a X...

has anybody been able to debug asp classic code with visual studio 2005 or later?

I've been stuck with visual studio 2003 for ages because of my need to debug asp classic code... A few years ago I tried to debug classic asp with vs 2005 with no luck, I think there was some dirty hack that was supposed to achieve that "magic", but I couldn't make it work... I wonder if anybody has been luckier than me... Haven't tri...

Help! Why did MySql just screech to a halt?

Our relatively high traffic website just screeched to a halt, and we're totally stumped. We run on Django and Mysql (InnoDB), and we're trying to figure out why it's all of a sudden totally slow. Here's what we know so far: On our mysql server, a simple query (from django shell) runs fast. On our app server, a simple query (from django ...

Finding bugs by bisecting (searching) revision history, and untestable commits (revisions)

Most modern version control tools have a command to find a change that introduced a bug by binary search (bisecting) of a history. Such command might be built-in, or it might be provided as extension or plugin. Examples include git-bisect in Git, "hg bisect" in Mercurial (earlier available as hbisect extension), and bzr-bisect plugin for...

Microsoft Script Editor (MSE) download

A while back i saw a link on here which let you download an installer for MSE. I should have copied it down but i didnt. Now i really need it. I know that it comes with office 2002, but i cant install that right now. If someone has a link please share it. I think its easy to find if you know the file name, which i dont. ...

What can cause non-deterministic output in a program?

I have a bug in a multi-processes program. The program receives input and instantly produces output, no network involved, and it doesn't have any time references. What makes the cause of this bug hard to track down is that it only happens sometimes. If I constantly run it, it produces both correct and incorrect output, with no discerni...

How can I visualise the memory (SRAM) usage of an AVR program?

I have encountered a problem in a C program running on an AVR microcontroller (ATMega328P). I believe it is due to a stack/heap collision but I'd like to be able to confirm this. Is there any way I can visualise SRAM usage by the stack and the heap? Note: the program is compiled with avr-gcc and uses avr-libc. Update: The actual prob...

When to use assembly language to debug a c/c++ program?

When to use the assembly to debug a c/c++ program? Does it help to learn some assembly to debug programs? ...

Monitoring API calls

I am doing some reverse engineering and want to know which APIs are called from the executable. I am mostly interested in the APIs called on a particular Windows system DLL. I guess one way to do that is to get all APIs exposed from the DLL using dumpbin and put breakpoints on all those from Windbg. Any other approach? This seems like...

Flex Builder 3 not debugging

Allope, I've recently bough Flex Builder 3 and I am completely dissatisfied with its reluctance to debug. It manages to debug a few times, but after that, it just doesn't want to "connect to the debugger". Help? ...

How to debug stored procedure on a remote sql server from Visual Studio 2005

Hi, Can anyone suggest how to debug stored procedure from a remote sql server using visual studio.net 2005? I am able to debug my stored procedure from local server, but I'm unable to do so if the sql server is remote. I will often get an error that "Unable to start T-SQL Debugging.Could not attach to SQL Server process on [Remote S...

Why does GDB says "Architecture of file not recognized"?

Hi All, I m using gdb on a aix shared lib running on aix 5.3? When i try to run gdb for this file i get a error message saying ""Architecture of file not recognized" Don't know how to get this fixed. Does anybody know why i get this message ""Architecture of file not recognized"?. gdb runs fine on other executables compiled by xlc. ...

Is there any way to start process in suspended state?

I want to launch a process in suspended state. Is there any way to do this by using only standard tools coming with Windows XP? Is there any lightweight third party tools? Problem I'm trying to solve: I have a application which I want to debug it by using Visual Studio 2005. I have debug build with necessary *.pdb files and I have all s...