debugging

Shutdown exception handling for Win32/C++

I have a process that handles exceptions great. It calls: _set_se_translator(exception_trans_func); SetUnhandledExceptionFilter(UnhandledExceptionFilterHandler); _set_purecall_handler(purecallHandler); set_terminate(terminateHandler); set_unexpected(unexpectedHandler); _set_invalid_parameter_handler(InvalidParameterHandler); atexit(ex...

Preventing symbol loading in Visual Studio

Many questions have been asked about this, and many answers have been proposed, but nothing's worked for me. At one point, I turned on .NET symbol loading for WPF projects, using these instructions: http://blogs.msdn.com/sburke/archive/2008/01/16/configuring-visual-studio-to-debug-net-framework-source-code.aspx Worked great, all cool a...

Unhandled IIS Exception - How can I track it down

I am seeing the following error in the event log. It is coming from our ASP.Net application. I am having trouble tracking down what is causing the error. Any suggestions appreciated! OS: Windows Server 2000 WebServer: IIS 6 Application: ASP.Net v3.5 Error Log [MachineName] has logged the following Error for IIS Details:...

Firebug debugging JavaScript

Is there a way I can attach the debugger to an event? I have a checkbox input element in my DOM and when it's clicked, I'd like the debugger to break so I can step through what's happening. I've added onclick="debugger; ...", but Firebug doesn't break. ...

Firebug console window scope. Why isn't "this" always the same?

Firebug console scope. Why isn't "this" always the same? Shoudn't it be "window" all the time? ...

Parse error: syntax error, unexpected $end in E:\xampp\htdocs\announcements\announcement.php on line 143

I get this error message Parse error: syntax error, unexpected $end in E:\xampp\htdocs\announcements\announcement.php on line 143 Line 143 is the last line of the PHP file. When I comment out $htmlcode=<<<eod <div>$question</div> <div>$option1 $option2 $option3 $option4</div><br/> eod; echo $htmlcode; The error is...

Visual studio does not recognize aspnet_wp.exe when attaching to process

Hello all, This used to work for me, though I just recently formatted my computer and installed windows 7. Now I when I open the attach dialog I cannot even see the aspnet_wp.exe process. I've configured IIS, and I am accessing it through my global ip address. The website runs fine, but I cannot attach and debug the process. Any ideas...

Debugger.Break on visual studio 2010

Hi everyone, I try to debug my windows service using Debugger.Break() on Visual Studio 2010 beta 2 Ultimate on Vista 64 bits. Nothing is happening when I execute my code... Someone have a idea ? Thanks in advance. Best regards ...

eclipse debugger: attaching source-code of maven dependencies?

I'd like to use the source code of maven-managed dependencies when debugging our webapp in myEclipse 8. I have managed to attach the sources to the libraries in the "Maven Managed Dependencies" classpath container, i.e. when I open a class file from a dependency (e.g. using Ctrl-Shift-T), I see the source code. However, when I define a...

How to get the Debug.WriteLine?

Hi guys, is there a possibility to get all things that are write in Debug.WriteLine in a TextBox or something like this? ...

What is the easiest way to debug embedded jython in eclipse?

I know I can debug embedded (launched from a Java program) Jython with a remote Pydev debugger. Is there a simpler way to do it? ...

[C++] gdb shows gibberish values for class members, despite working code

I ran in to a (in my eyes) very strange issue with gdb today, while trying to write a more C++-ish version of the reverse() method of my string class (all for learning, of course). Despite having a proper default constructor that initializes all member variables to 0, they start out as gibberish inside the member reverse() - according to...

General strategy for finding the cause of random freezes?

I have a application which randomly freezes, including the IDE and it's driving me mad. That makes me wonder: What's a good general strategy for finding the cause of random freezes? ...

Why does the call to bsearch() crash the presented program?

Hi, I have an unsorted dictionary file named "dict.txt". I have managed to put the words of the file in an array and the qsort() I use also seems to be working just fine (That is, the array is sorted). The problem arises when I call bsearch(), the program crashes and my question is: Why is this happening? I use gcc to compile and do...

X-Code Debugger Hover Over Variable, what does '\ <some stuff> ' mean?

Easy question, that I can't seem to find a documentation-based answer for. In X-Code (v3.1) debugger if I hover over a struct variable such as sockaddr_in I see: Notice the difference between sin_port and sin_family/sin_len. What is the meaning of '\002' in the case of sin_family. Why is it not displayed as just "2"? ...

Run without debugging in eclipse

When I run my app on my phone from eclipse, it always runs in debug. This has only recently started to happen. I guess I must have inadvertently changed a preference or something, but can't work out what. Does anyone know how I can switch it back so I can run without debugging? Thanks in advance TAO ...

Can Visual Studio trace all events?

Is there some way in Visual Studio to enable/disable automatic tracing of events? I am not referring to adding Debug. or Trace. statements but rather having the system write to a buffer all the events that it has detected that apply to the application. This feature is common in embedded systems development and I can find no way to enab...

Watching a variable in Visual C#?

In my program there is a variable that sometimes gets the value of -1. I want to find out exactly where in the code this is happening. In Visual C#, is there a tool or method I can use so that when the variable becomes -1, the debugging process pauses, and I'm taken to the line of code where the variable is set to -1? ...

How to use TRACE with ascii under unicode MFC environment?

I am developing a MFC program under windows CE. It is unicode by default. I can use TRACE to print some message like this TRACE(TEXT("Hey! we got a problem!\n")); It works fine if everything is unicode. But however, I got some ascii string to print. For example: // open the serial port m_Context = CreateFile(TEXT("COM1:"), ...); int ...

Android - How to enable CheckJni for NDK development?

Hi. Can someone please tell me if I'm missing something here? I am trying the following commands in shell. $ ./adb shell stop $ ./adb shell setprop dalvik.vm.checkjni true $ ./adb shell start But Logcat always shows "CheckJNI is OFF" when I install the apk onto the device.. Is there something else in eclipse that I need to do to enabl...