debugging

Debugging PHP

I've been using xdebug to debug and understand code in php projects for a while now, and have sometimes come into situations where it's been unclear what's going on inside of PHP. Is it possible to set xdebug or gdb up so that i can trace into actual php builtin functions? ...

Is there a way to assign conditional methods or add preprosessor directives at run-time in C# ?

The aim is to be able to switch debugging calls on at run-time from database on a production build ... ...

What Steps do you Take to Troubleshoot Problems with PHP cURL?

Almost any working PHP programmer has faced having to use CURL to send raw HTTP requests, whether it's for credit card payment processing, nefarious screen scraping, or something in-between. Almost any forum where PHP programmers congregate has a large number of people who can't get the cURL functions to do what they want. When cURL is...

NetBeans debugging of Python (GAE)

dev_appserver works normal when run it. But if i try o debug, i found an error caused by __file__ that is changed on jpydaemon.py. Has anyone successfully debugged apps on NetBeans? ...

How to log stuff in console in Visual Studio C++

Hi everybody, I'm working on a little C++-Game in Visual Studio 2008. I want to see the content of a vector after a couple of seconds or after I pressed some buttons. Breakpoints are useless in this case, because they stop me at every call of the gameloop (~60 times per second). How do I debug in this case? Thanks! ...

Losing Break Point

// break point set here>> webRequest = (HttpWebRequest)WebRequest.Create(server); webRequest.Timeout = 30000; webRequest.Credentials = CredentialCache.DefaultCredentials; webRequest.Method = "POST"; webRequest.ContentType = "application/x-www-form-urlencoded"; webRequest.KeepAlive = false; XmlDocument doc = new XmlDocument(); doc.Appen...

How to debug Javascript error?

How to Debug java Script Error Using Firebug? Duplicate How can I set breakpoints in an external JS script in Firebug ...

Print methods not called when running, called when debugging

Hi, I created a class with four methods. I inserted print statements into them, so I could see if they work properly. There is no problem with the first three. But when I call the fourth method nothing prints out. Strangely when I initiate debugger and move through the method step by step, the statements are called(and output printed). ...

How to Debug .net applications without Visual Studio

Please let me know if this has been asked before, I wasn't able to find any questions on this subject:- I need to determine the inner exception of an exception thrown on a computer with the .net framework installed but not Visual Studio (nor is it possible to install Visual Studio on the computer). How can I examine this inner exception...

IIS 6.0 Debugging methods

I need some help from you about debugging high CPU usage (w3wp.exe) on server (Windows Server 2003 R2). I used debugdiag to anaylze but the problem is that this piece of software is not detecting any kind of problem. Have you ever met any problem with high CPU usage on w3wp.exe (100% all the time)? Have you got any tutorial how to debu...

Invalid postback or callback argument. Debug question

I am getting the error: "Invalid postback or callback argument. Event validation is enabled using in configuration or in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the Client...

how do I find out what program's on the other end of a local socket?

A process on my Linux system, strace tells me, is talking on a socket which has file descriptor 10. lsof tells me that this is a unix socket with inode 11085, and netstat further tells me that inode 11085 a stream socket, and that it's connected. Given that this process doesn't have any other threads, there must therefore be another pro...

Is there a better way to debug SQL?

I have worked with SQL for several years now, primarily MySQL/PhpMyAdmin, but also Oracle/iSqlPlus and PL/SQL lately. I have programmed in PHP, Java, ActionScript and more. I realise SQL isn't an imperative programming language like the others - but why do the error messages seem so much less specific in SQL? In other environments I'm po...

Stop IE8 message "web page stopped responding" while debugging

IE8 has a feature that pops up a dialog box that informs me when a web page stops responding that's a bit annoying when debugging as it steals focus from visual studio. Is there a way to disable that feature? ...

Interactive Javascript console (preferably integrated with Firebug)

I'm looking for a way to have an interactive JIT debugger, preferably integrated with Firebug. I got the idea from PHPEd, which has an "Immediate" debug tab where you can just type in PHP code and modify objects on the fly. This makes debugging a breeze as you can re-assign variables multiple times, re-execute functions, etc without lea...

How do I get the CoreData Debug argument to output to the console?

According to Apple documentation on debugging Core Data it says we should be able to pass an argument to the application which will output the SQL core data sends to SQLite. I have gone into the arguments tab of my executable in XCode and specified the argument: -com.apple.CoreData.SQLDebug 1 However, I see no SQL in the console. ...

Sys.Debug messages not appearing in VS debugger Output window

This is soooo weird. I cannot seem to get any output messages from Sys.Debug methods to print into the Output window in Visual Studio 2008. I'm talking about simple things, like Sys.Debug.trace("show this message") or Sys.Debug.traceDump(Sys.UI.DomEvent). They show up in the Firebug trace console just fine. They also show up fine in IE...

A good example of custom log4net appender outputting text directly to a asp.net control ( custom control , Label , etc) ?!

I do have db appender and know how to get the output to a custom "logging" page ... The idea is to have a quick and dirty switch to write for example to the Response object ... ...

Debugging MS SQL Stored Procedure

I have a problem getting Stored Procedure debugging to work in Visual Studio 2008: When I start debugging, I get these success messages in the output window, however the actual stored procedure windows does not show up. Auto-attach to process '[1640] [SQL] stagsql' on machine 'stagsql' succeeded. The thread 'stagsql [67]' (0xf80) has ex...

Windows program to report keypresses

Problem: I am using Windows as a guest operating system in a Virtual Machine and a funky keyboard setup. I need a way to be able to troubleshoot cases when keyboard hotkey combinations are not functioning properly. Question: Does anyone know of a program that quickly and easily displays on the screen what keypress windows thinks it got ...