debugging

Eclipse Key Preferences; Debugging; Adding A "Watch Expression" Using The Keyboard

How do I define a custom key binding in eclipse? I have to admit, for a FREE PRODUCT, Eclipse really delivers. However, sometimes I have to scratch my head about certain missing features... Eclipse has over ELEVEN HUNDRED different key bindings. I would like to use one of those KeyBindings to add a "Watch" Expression to the express...

Having issues with counting the number of bytes in use by files in a folder. Getting a segfault error.

I am currently trying to count the number of bytes consumed by files in a certain directory. It recursively goes through all the folders on the current directory and counts the bytes of the files. When I recursively call the function rec_bytes, I print off "Go in"... but when it returns the value... It segfaults. I labeled the problema...

Java bitshift strangeness

Java has 2 bitshift operators for right shifts: >> shifts right, and is dependant on the sign bit for the sign of the result >>> shifts right and shifts a zero into leftmost bits http://java.sun.com/docs/books/tutorial/java/nutsandbolts/op3.html This seems fairly simple, so can anyone explain to me why this code, when given a value ...

Z-index problem on IE7

**this question is on bounty because the below answers did not solve the problem. I am debugging a page in IE7 and have run into one problem. When you hover over a nav link, the dropdown falls below the slide below it. The dropdown ul is positioned absolutely with a z-index of 10 and the slider is positioned relative to its parent with...

Good tools for Multi-threaded C++ debugging on MacOSX?

Hi! I recently switched form ubuntu to MacOSX. I also recently started heavily using multi threading. What good addons/alternatives are there to g++ for debugging multi-threaded apps on MacOSX? In particular, I'm interested in tools that let me "poke" around classes/structs; to follow pointers, expand members, show the value of member...

Can ETW events be used to trace perf problems?

How about it's latency? I mean how much time it will cost for one trace message? Is it in milliseconds level? ...

Using Trace32 with Qualcomm FFA

Does anyone knows of any resources regarding the debugging of BREW and/or BMP applications on Qualcomm FFA using Lauterbach JTAG/Trace32 (e.g. .cmm scripts, instructions etc.)? Thanks. ...

Finding division by zero in a big project

Recently, our big project began crashing on unhandled division by zero. No recent code seems to contain any likely elements so it may be new data sets affecting old code. The problem is the code base is pretty big, and running on an embedded device with no comfortable debug access (debug is done by a lot of printf()s over serial console,...

Visual Studio Package - How can I get hold of the information in the locals window?

I have a VSPackage that I would like to get information similar to that shown in the locals window when in debug mode (the values of variables for the current context). I have been experimenting with the DTE.Debugger.CurrentStackFrame instance which looked interesting because it exposed Argument and Local collections of expressions. How...

Flex SWCs: Are there "debug" and "release" versions for SWC's?

Using Flex Builder 3, I do not have an option to export a release build for my SWC. Is there such a concept - "release" versus "debug" versions for a SWC? ...

OS X: Generate core dump without bringing down the process?

I know how to generate a core dump on OS X when a process crashes, but what I really need to do is attach to a process, generate a core dump, then resume that process (without killing it). A long time ago (maybe a year and a half ago) I had C code that would do this... It used the OS X kernel libraries to connect to a process, read all...

On what line did a script exit?

I have a php script that is rather hairy and I'm trying to troubleshoot it. No errors are happening, but I'm having trouble seeing what execution path it took to create the output I've gotten. Is there a way I can see at what line the script stopped execution? Folks, sorry I didn't make this clearer. No errors are happening. No except...

Android trace file created but zero bytes long

I am trying to follow the instructions on this page to create a trace file. I can see the file in File Explorer in DDMS and can pull it onto my PC but it is zero bytes long. Any suggestions as to what I might be doing wrong, please? ...

How to implement a leveled debug system?

Hi, by design, in the environment I'm working right now I can't use a debugger to try to detect bugs, so pretty much always when I need to debug a functionality I end up outputting some info. To do that I've done the following: #ifdef DEBUG #define printd(x) printf x #else #define printd(x) #endif So when I need to print some...

How can i change the output format of TextWriterTraceListener?

the default implementation shows the output as ': : ', now i dont want this format, i want to cut off the sourcename and eventid because it' s totally useless for me. is there any easy way i can accomplish that? my current workaround is to derive from TextWriterTraceListener and override the TrackEvent method. use reflector to copy the...

Debugging vtable Linker Errors in GCC

Now and then when using GCC I get cryptic errors like this: undefined reference to 'vtable for classname' When it's not caused by a missing library, this not-very-descriptive error message always causes me to dig through code files line by line to find the missing implementation for a virtual function. Is there a way to make the linke...

using catch(...) (ellipsis) for post-mortem analysis

Someone in a different question suggested using catch(...) to capture all otherwise unhandled - unexpected/unforseen exceptions by surrounding the whole main() with the try{}catch(...){} block. It sounds like an interesting idea that could save a lot of time debugging the program and leave at least a hint of what happened. The essence ...

Is it possible to remotely debug linux code from a non-linux system?

I know it is possible to remotely debug code using gdb's server mode and I know it is possible to debug code that has been cross-compiled for another architecture, but is it possible to go a step further and remotely debug Linux applications from OS X using gdbserver? ...

Trouble debugging Java in Eclipse Galileo - appears to be in infinite loop

The user is on JDK6 u 18 with the latest Eclipse, and there appears to be an issue where Eclipse can't step through the debugger as it would normally. Instead, the debugger is rapidly listing and delisting threads from what it looks like at the very bottom of the debug tree. Has anyone seen this before? ...

Does VS2010 support multi-attach?

When I hit F5 to debug an application, there are usually more moving parts in terms of processes than the one process associaed with the project that is considered the "startup application". For example, a web application makes calls to another (isolated) web application that hosts WCF web services. Both apps are in the same solution, bo...