debugging

Debugging C# applications

I´m coming from a PHP background where my debugging "tools" are basically echo, var_dump and exit. While I know the importance of debugging, I never tried to use/learn a debugging tool. Now I´m learning C# and I think I can´t really program without an extensive knowledge of this area. So my question is: where can I learn what is and ho...

Debugging Help - set a value in debug mode??

I am debugging and I hit my break point. I hover over a variable and I get the standard drilldown. I see a Nullable prop and it is null. I right click and choose "edit value". No matter what I seem to type, I get "The value could not be set. Please check your entry." I have tried 5/1/09, new DateTime(2009, 5, 1), {05/01/2009}... pretty ...

How to start debugging?

I have learned C and I would like to start to improve open source software. I would like to hack away one irritating bug in GTK+. To see the bug I need to use Gedit. How can I download the sources of GTK+ and gedit and compile both of them so that I can see where the bug is? And I have never used any debugger in Linux so is there somewh...

Strange! VS 2005 -Break Point is not being hit

I am using Visual Studio 2005.I am running my code in Debug mode only.But my break point is not being hit. I followed : Cleared my solution and created the one again Closed the VS and Opened it again Restarted my PC and tested the break point But i am unable to figure out the problem. My Question is: Is it due...

DOM attribute change debugging

Somehow somewhere in my code one of the elements on the page gets a style attribute which I don't expect it to get. Namely, it gets style="position:fixed". I can see this happening in HTML tab in Firebug, but can't find it in the code. The application is fairly big and I can't simply look through all of the code to find the place, beside...

PHP - Print all statements that are executed in a PHP command line script?

In python, one can trace all the statements that are executed by a command line script using the trace module. In bash you can do the same with set -x. We have a PHP script that we're running from the command line, like a normal bash / python / perl / etc script. Nothing web-y is going on. Is there anyway to get a trace of all the lines...

How do I use the -e option in PHP?

php on the command line tells me that it has an option: -e Generate extended information for debugger/profiler However by running my command line script with that I see nothing... what's that option for? ...

IE 6 Debug Help!

I just uploaded my site to the server, and it is working perfectly in Firefox and IE8, but not IE6 (have not tested in IE 7)... Here is the address: http://hqinternetsolutions.com/fullservice/index.html There are two problems on the homepage that I cant seem to figure out. The header (which uses jquery to shift the images) appears far...

Catching uncaught exceptions through django development server

I am looking for some way in django's development server that will make the server to stop at any uncaught exception automatically, as it is done with pdb mode in ipython console. I know to put import pdb; pdb.set_trace() lines into the code to make application stop. But this doesn't help me, because the line where the exception is thro...

Visual Studio not debugging

Hi guys I have a problem that has lately being bugging me on 2 different computers What is happening is that I press F5, to compile my website, the website loads, but I cannot debug! Its like I am not running the website from visual studio at all. And then sometimes I restart my PC, and it comes back to normal. I have no idea what is t...

Trouble Stepping Into Web Service...

Hi. I am wondering what is the best way to step into my Web Service? When I compile my code the application hangs when it gets to a web service method. If i try to set a break point and step into the service's code, it won't let me - catching "The operation has timed out". Things I have tried: 1) My SVC file has Debug="true" 2) M...

Visual Studio 2008 compiling when I exit debug mode (with a vengeance)

I have a solution at work (with 33 projects) that insists on compiling the whole thing when I exit debug mode. It's extremely irritating as the IDE is unresponsive while at it. I have seen this question, but I've already completely disabled Edit-and-Continue. Also, it does this when I don't make any changes. I have a fairly vanilla VS2...

How can I debug an OutOfMemoryException in ASP.NET?

I am reading an .opml file and parsing it to generate a list of articles for each rss feed I subscribe to and thus add into this .opml file. At times, when pressing play on Visual Studio (Run), I get an error (not exception) stating an OutOfMemoryException. This is before the application can even run (but has compiled). The page in ques...

What's the difference between debugging Local IIS and Custom Web server?

In Visual Web Developer Express 2008: I would like to know the difference between debugging with: Use local IIS web server and Use Custom web server I'm using IIS7 on windows vista and the only difference I've noticed is that you need the IIS6 compatibility component for Local IIS and, more importantly, that debugging with Local II...

0xDEADBEEF equivalent for 64 bit development?

For C++ development for 32-bit systems (be it Linux, Mac OS or Windows, PowerPC or x86) I have initialised pointers that would otherwise be undefined (e.g. they can not immediately get a proper value) like so: int *pInt = reinterpret_cast<int *>(0xDEADBEEF); (To save typing and being DRY the right-hand side would normally be in a ...

Automatic break when contents of a memory location changes or is read

The old DEC Tru64 UNIX debugger had a feature (called "watchpoints to monitor variables") that would watch a memory location (or range of addresses) for read or write activity and when it detected such activity would break the program so you could investigate why. See for details: http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V...

cannot override sys.excepthook

I try to customize behavior of sys.excepthook as described by the recipe. in ipython: :import pdb, sys, traceback :def info(type, value, tb): : traceback.print_exception(type, value, tb) : pdb.pm() :sys.excepthook = info :-- >>> x[10] = 5 ------------------------------------------------- Traceback (most recent call last): File...

Cannot debug in VS2008 with Windows 7

Since installing Windows 7, I cannot debug a website. I am an administrator on the machine, but when I try to debug, it says: Unable to start debugging on the web server. YOu do not have permissions to debug the web server process. You need to either be running as the same user account as the web ser, or have administrator privlege." I ...

Multiple commands in gdb separted by some sort of delimiter ';'?

I am trying to execute two commands at once in gdb: finish; next I tried using the ';' to separate the commands but gdb did not let me do both at once. Is it possible to do multiple commands in gdb similar to bash commands separated by ';' delimiter? ...

Visual Studio 2008 hangs when debugging classic ASP

So part of the application I'm working on is still written in classic ASP. Visual Studio 2008 was working just fine to debug the classic ASP, and with the addition of a hotfix it wouldn't even crash when I stopped debugging. This was all working very well for a number of months. Yesterday and today, several members of our group notice...