debugging

Visual Studio 2010 freezes when attaching to a process for debugging. Why?

I recently installed Windows 7 64 bit and Visual Studio 2010 on my new laptop. However the computer hangs (OS freezes + mouse freezes + Visual Studio) for a good 3-5 seconds when Visual Studio attaches to the process. This is really annoying. What is really strange is that this is not happening on my slow 4 year old laptop which run Wind...

How do I get a visual debugger on Mac OS when I have no XCode project?

I am porting a project over to OS X. I am finding GDB debugging in the console to be woefully insufficient and really need a visual debugger. My project is built using Scons and as such, it sidesteps Xcode's IDE entirely. This is acceptable until I need to fire up a visual debugger and step through my code. Aside from generating and ...

Zend Server CE (or possibly Eclipse) - timeout when debugging?

Hi guys, I'm setting up PHP Eclipse with Zend Server CE as a debugger. I start debugging a file, and it opens either in the internal web browser or in Firefox. However, when stepping through the file, after a minute or so the internal web browser stops waiting for a response and brings up a file download box. e.g. if I was debugging i...

Can C/C++ compiler report struct member offset

Possible Duplicate: Layout of compiled objects Hello, everyone. I'd like to ask, can compiler(e.g. Visual C++) generate a report(.txt) telling struct member offset for a struct/all structs? If so, it helps debugging quite a lot. For example, when you read disassembler code in the debugger, it can be easier to associate an off...

How to track down a double free or corruption error in C++ with gdb

When I run my C++ program it crashes with this error. * glibc detected ./load: double free or corruption (!prev): 0x0000000000c6ed50 ** I'm trying to track it down using cout statement but am finding it difficult. Could gdb make this easier? How is it done? ...

Disabling Xdebug's dumping of caught exceptions

By default Xdebug will dump any exception regardless of whether it is caught or not: try { throw new Exception(); } catch (Exception $e) { } echo 'life goes on'; With XDebug enabled and the default settings this piece of code will actually output something like the following (nicely formatted): ( ! ) Exception: in /test.php on li...

Eclipse PDT - how to debug the $_SESSION, $_GET, $_POST variables...

Hi, I'm stepping through code using Eclipse PDT. When I mouseover an array it says e.g. "$_SESSION = Array [0]", but won't show me the data. This is fine for local varaibles as I can see them in the "Variables" window, but it means that I can't see the contents of $_GET, $_POST, $_SESSION. How do I fix this? ...

Spring security annotations with EL -- requires debug information compiled in?

I am considering using Spring Security annotations for my application, with the EL (expression language) feature. For example: @PreAuthorize("hasPermission(#contact, 'admin')") public void deletePermission(Contact contact, Sid recipient, Permission permission); I need the EL capability because I have built my own ACL implementation. ...

ASP MVC - Getting application to restart when starting new debugging

Hi there. When editing parts of my project that get called in Application_Start(), i want to have the web app restart every time i press 'Debug', so that i can debug these parts. But if i dont change the Global.asax.cs self, it doesnt restart and therefore doesnt fire the Application_Start(). Is there any setting or trick to let the ap...

How can I tell Visual Studio to NOT BREAK on a particular exception?

I have a particular type of exception that I would like Visual Studio to not break on and show the Exception Assistant screen. Essentially I would like it just to let my normal exception handling infrastructure deal with it. The exception is an inheritor of System.Exception which I wrote and have the source code for. Any where this is...

Are there design-time watch windows for Visual Studio 2008/2010?

There are many times when I need to test a little snippet of .net code but rebuilding and publishing the entire project or writing a suite of unit tests just seems like overkill. For example, I am writing a regular expression right now and I want to see if it the pattern is matching on the right parts. I could go and find a million other...

Can you step into specific properties in VS 2010?

I know that you can either step into every property or not step into every property, but I would really like to be able to step into a specific property, and not the rest. Is this possible? (I also know I can use keyboard commands, but I'm asking if there's a more permanent solution.) I have a lot of properties and my setters do importan...

Rails-like console for PHP?

Every so often, things work in my local PHP development environment, while in my test environment on my server, things do not. It's a nightmare to debug this. If I had a console like Rails provides, debugging would be much much simpler. Is there anything like the Rails console but for PHP? I should mention that I am using a home-brewn ...

Is it possible to load a file full of binary data into GDB when GDB is debugging a core file?

I am debugging a crash using GDB and a core file. A large portion of the memory space is mmapped into the process. That portion of the memory is not saved into the core file. I have a file that contains all the data in that mmapped memory. I would like to find a way to load the data from that file into GDB at a certain offset so th...

(iPhone) Instruments can't "Attach to Process"

Actually, I'm using a second generation Ipod Touch. What I'm trying to do is to debug my app on XCode and look for any memory leaks on Instruments at the same time. Is it even possible? Because the "Attach to Process" submenu lists when my app is running (or debugging in this case) but all the items inside this menu are disabled. All I ...

Why does the CPU window always appear when trying to debug my project after a rebuild in Delphi 2010?

Hi, Whenever I rebuild my application and try to step into a break-point the CPU window always appears. From what I understand the CPU window appears when DCU does not match up with the source file, however, in my case the DCU's are defintely being re-compiled and there are no old ones lying around or anything like that. The strange th...

how to use .mdf while developing

I use a .mdf database for my asp.net Mvc project. The project is on source control on a tfs. When I debug the project, Visual Studio copies the database in to the debugmap. The problem is, when I debug next time, the changes (while testing the previous time) in the database are gone. The reason of this I know, Visual studio copies the o...

Can I use VS2010's Intellitrace to gather data for a Windows Service?

I have a Windows service that I'd like to gather some debugging data on using Intellitrace - the problem is that you can't debug a Windows Service by starting it directly from inside VS. I have the service installed, and the very first statement in Service.Start is "Debug.Break", which allows me to attach VS. However, you can't use Intel...

Strange XCode debugger behavior with UITableView datasource

Hey guys. I've got a perplexing issue. In my subclassed UITableViewController my datasource methods lose their tableview reference depending on lines of code I put inside the method. For example, in this code block: - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { // Return the number of sections. return 3; } ...

Hibernate cascade debug options

I have run into various StackOverflowErrors which occur during cascading. These have been extremely time consuming in debugging because I don't know which properties are being cascaded to cause this recursive behavior. Does anyone know of a log setting or some other form of debugging which could tell me specifically what properties are b...