debugging

How to detect system information like os or device type

The most important things i want to know are the device type, the os version, if it has a hardware keyboard and maybe the screen resolution. but if you know other useful debug information please add them :) i found this for the os version: string+="OS Version: "+System.getProperty("os.version"); how do i get the other properties? ...

Debugging silverlight in a WPF app...

I am developing a WPF app that contains a webbrowser control that loads a silverlight application. I would like to be able to launch the app from visual studio (F5) and have the debugger attach to the silverlight code. However, I've not had any luck with this. The best I can currently do is to launch the app without attaching, then once...

Xcode "Run With Performance Tool" disabled ?

Hi experts, I am trying to find memory leaks from my Xcode project. I don't know, what happened - I can't select anything from Run->Run with performance tool - the list of things are disabled. Please help me, I am a beginner. ...

Android - Debug slow running code

Hi, Is there a good way (proper way, or effective way) to debug slow running code? I have a thread which runs multiple loops and then recurses and my code is running very slow. Is there a good way to debug different loops or sections of code to find out which is running slowest? If the debugger already does this, can someone please e...

Android Debugging ???

What is the best way to debug an android application? Every once in a while the application crashes, an it says application has stopped unexpectedly, it never says why it crashes, or where in my code, what's the bet way to find the reason for crashes, and exceptions? ...

Buffer too small when copying a string using wcsncpy_s.

This C++ code is kind of lame, but I need to maintain it. I cannot seem to figure out a "buffer too small" problem. I am using Visual Studio 2010. I will come up with minimal code required to reproduce based on the values I see in the debugger. Sorry, I will not have tested the actual snippet itself. Also, since my system clipboard is "b...

The Symbol file MyFile.pdb does not match the module

I've searched on this issue, and found many flavors and ideas but no real solutions. So, donning my asbestos suit and hoping for the best, I'm going to dare ask it again. I have managed C# code that calls managed C++ code, which in turn calls unmanaged C++ code. The unmanaged C++ code is throwing an exception, and I'd like to be able ...

cant see breakpoints when I want to debug using device

When I'm using the device and click on my debug the application is lunched in my device but I cant see the break points . In the debug window the application whom run is shown for a second and then disappear and I cant debug my application on the device . Did I miss something ? can someone please explain me what I did wrong and corre...

DLL track function calls

I have never used dll's before(absolutely no experience) and I wanted to replace a dll in an app with one that can somehow debug(show me in some way) what function was called. So if dll one had this type of code(again, i have no experience) function test(var1, var2, num3){ //dosomething } I would replace with dll.onfunccall = ale...

How do I get a callstack in Haskell?

I am trying to track down a non-exhaustive pattern in a libraries code. Specifically HDBC's mysql implementation. It is trying to match over types in my program and map them to mysql's types I believe. I can't seem to get a callstack for this error which means that since there are a number of parameters to the SQL query it is difficult t...

How can I use Firebug to check data if the page is reloaded?

Hi, How can I use Firebug to check data if the page is reloaded (in the case of AJAX, etc.)? Thanks. ...

What are the Steps for Debugging Java Web Application ?

Hi, I joined a project which has been already developed and its an Web Application deployed on Tomcat Server. I have configured the Web Application on my local Tomcat Server and it is running fine. I want to start debugging the Application but I am not sure where to start from and how to debug an Java Web Application from Eclipse and...

Problem debugging C++ with an Eclipse based IDE

Hi all, This is a weird question in that I'm not sure where to start looking. First of all, I haven't done any C++ programming for the last 10 years so it could be me thats forgotten a few things. Secondly, the IDE I'm using is Eclipse based (which I've never used) and customized for Samsung bada based mobile development (it kicks off ...

Cocoa Touch - iPhone App crashes when button is pressed?

This is my first app. It doesn't crash the simulator just brings you back to the home screen. This isn't my first cocoa program (I'm not a pro at cocoa either)just my first iPhone. It crashes when you press the letsPlayButton, which runs the -(IBAction)letsPlay:(id)sender; method. Help me! Im so lost with what's wrong! .H #import <...

Is there a macro that Xcode automatically sets in debug builds?

So I can write code like this: #ifdef [whatever] // do stuff that will never show up in the production version #endif ...

implementing step over, dwarf

Hi, Im working on a source level debugger. The debug info available in elf format. How could be 'step over' implemented? The problem is at 'Point1', anyway I can wait for the next source line (reading it from the .debug_line table). Thanks if (a == 1) x = 1; //Point1 else if (a == 2) x = 1; z = 1; ...

Finding .NET Multithreading Bottlenecks

Greetings. I have a .NET application running a bunch of simulations in parallel. It's doing a parameter sweep, so each parameter has its own Parallel.Foreach loop. I normally set the max parallelism to one in all but one of loops, to keep memory requirements down, since each parameter can take more values than I have cores available (4)...

Output debug via printf on a Cortex-M3 CPU, stalls at BKPT instruction + confusion about JTAG and sw ports.

I have a Keil ULINK2 USB emulator box attached to the JTAG connector on my board, which is working fine with the Cortex-M3 CPU onboard (TI/Stellaris/LuminaryMicro LM3S series). It seems that both a JTAG and a SWJ-DP port share the same pins (and thus connector on your board) on these CPUs. One appears not to have ITM (printf) capabilit...

How to break Visual Studio 2010 JavaScript debugger from script

Is there a JavaScript command that will cause the Visual Studio 2010 debugger to break? Trying break(); didn't work because it's only valid within loops. Also stop(); failed because it picked up that stop() doesn't exist and I didn't have a useful stack trace. ...

Xcode debug with iPhone app is slow and laggy

I am debugging an iPhone app I'm writing in Xcode, but sometimes now the debugger (which is GDB) slows a lot (doing a step-by-step debugging) and becomes unresponsive sometimes (the icons for stepping-in, stepping-over, stepping-out are not clickable), after sometimes it gets back to normal and continues and other times it stay like that...