debugging

Objective-C Problems with NSDictionary and NSURL

Hi, I am new to Objective-C and I have no clue why this code is not working: NSMutableDictionary *bookmarks = [NSMutableDictionary dictionaryWithCapacity:(NSUInteger) 4]; [bookmarks setObject:@"Stanford University" forKey:[NSURL URLWithString:(NSString *) @"http://www.stanford.edu"]]; [bookmarks setObject:@"Apple" forKey:[NSURL URLW...

"detach all" vs "stop debugging"

When using the "Attach To Process" feature in Visual Studio 2008, what is the difference between "detach all" and "stop debugging"? ...

Click event fires in IE/Firefox, but Chrome is dropping the event assignment

I'm in the process of debugging my web application and have hit a wall. I'm experiencing a behavior in Google Chrome only and my javascript ineptitude is keeping me from the solution. I have an ASP page with an <asp:Panel> control. Within the panel, I've setup a simple search textbox and am using an <asp:LinkButton> to launch the sear...

I can no longer debug classic asp code with visual studio 2008

I've finally found a way to debug classic asp code in visual studio 2008 ... but... http://stackoverflow.com/questions/958968/has-anybody-been-able-to-debug-asp-classic-code-with-visual-studio-2005-or-later ... but ... it only lasted a few days... I'm following these steps http://www.codeproject.com/KB/debug/DebugVBScriptVS2008.aspx...

How can I trace what happens during XAML loading?

I would like to find a way to see what happens while my XAML is being loaded. What classes are being instantiated, and in what order? Which properties are being set, to what values, and in what order? Which methods are being called (e.g. BeginInit, EndInit, etc.), in what order, and with what parameters? That sort of thing. (If anyone's...

Checking memory allocation in Instruments

Hello, I've cleared my app of leaks using the leaks tool, but I still notice that the objectalloc tool jumps up in the number of objects allocated and footprint when I switch views. I'm especially seeing high numbers of: GeneralBlock-16 with mostly Foundation responsible with caller NSLogv and GeneralBlock-0 with mostly QuartzCore re...

VS2008 Debug ASP and ASP.net together

Is there any way to debug both classic ASP and ASP.net applications from visual studio to allow me to breakpoint on an ASP line of code and an ASP.net one too? This is for a legacy system which has older classic asp components and newer ASP.net modules I have it working by debugging the ASP.net on its own (and not the ASP) or the other...

Debug c++ dll in csharp

Hello, I have a .dll from c++ and i want to debug it in Csharp, but i don't know how to do. When i compiled the c++ project, Visual studio asked me to execute an ".exe" I supposed that i had to create a project to execute the dll. But i'm some lost, anyone have suggestions? ( sorry for my english, i'm french ) ...

Can I tell VS2008 to ignore debug-time evaluation of my lazily loaded properties?

In our .Net application, some of our business objects use lazy loading to access data from the server. While debugging, if I want to inspect a property I have to be very careful and not "look at" or access those properties because this causes the IDE to try and evaluate those properties, which fails. Is there an attribute I can put on ...

Cookie not being persisted in MVC

I am having a problem where a cookie I am setting is being lost directly after RedirectToAction() is called. Is something going on behind the scenes that invalidates the current request and creates a new one that causes the cookie to be lost before it has been persisted to disk? I understand that if you want data to be available after ...

Is Netbeans 6.7 incapable of debugging Groovy closures in a Grails application?

It seems to be possible to debug Grails applications in the recently released Netbeans 6.7, even if not directly through the menus. However, is it really so, that it's still not possible to set breakpoints in closures, as hinted in this thread? I'm currently quite baffled by this, since I find it hard to believe they still haven't imple...

Determine reason of System.AccessViolationException

We are having nondeterministic System.AccessViolationException thrown from native code. It's hard to reproduce it, but sometimes it happens. I'm not sure if I can "just debug it" since the time needed for access violation is about 2 hours and there is no guarantees that access violation will happen. The native library is used by managed...

What is the .Net tracing facility? where can I start reading about it?

Can I use tracing instead of my manual logging mechanism? Please recommend good references and advices. ...

Debugger Error

I'm using tsWebEditor with xDebug and one of two errors pops up every minute or two even when I am not debugging and even when there are no files open for editing. Exception from Debugger: Connection reset by peer Exception from Debugger: xdebug did not return a valid length([|]) The "[|]" character is an unidentifiable character that...

C#, Debugging an HTTPHandler

I have an HTTP Handler that is the entry point for 90% of our app. Basically it gets a request, process a lot of data and returns a very specific file depending on the client & web page it is embedded on, etc. I have setup the Application Mappings so that all .kab extensions point to *C:\Windows...\aspnet_isapi.dll*. I added my HttpHa...

asp.net mvc exceptions tracing

Hi, I am trying to send an exception caught in Controller to trace.axd page, but I cant seem to figure it out. I have <trace enabled="true" localOnly="false" mostRecent="true" pageOutput="false" /> in web.config, and my inteded reaction to an exception is catch (Exception e) { ViewData["error"] += "Is not number!"; Trace.Trac...

Remote Debugging Multiple Movies on a Single Page

Hi, I've got two flash movies on a page. Using the Flash IDE I'd like to implement remote debugging when a particular movie loads. My problem is that the debugger attaches to the first loaded movie - not the one I want. Thanks, Josh ...

Code J2ME applications with Visual Studio 2008?

I am currently using netbeans 6.7 to develop some j2me apps for a phone. However, I am not very fond of the netbeans IDE and its clunky debugger and would rather use Visual Studio for development. Does anyone here have a tutorial on how to use Visual Studio 2008 to compile and debug J2ME apps? I would like to tie VS2008 up to an emu...

How do I Debug a SingleFileGenerator/ Custom Tool?

I am building a Custom Tool code generator using the Visual Studio SDK and basing it on the SingleFileGenerator example. My question is how to enter debug mode on this code? I can currently add my custom tool to a file in Visual Studio but it errors out, I'd like to be able to debug this code if possible. ...

What is the best way to debug performance problems?

I'm writing a plug-in for another program in C#.NET, and am having performance issues where commands take a lot longer then I would. The plug-in reacts to events in the host program, and also depends on utility methods of the the host program SDK. My plug-in has a lot of recursive functions because I'm doing a lot of reading and writing ...