debugging

Debug / Standard build of Java application

Greetings, I'm using embedded java, I write the application to a low resource device. One of the problems I get is when the code crashes the device stops. I can get a little information from it with some logging that I've added. (Simple print statements) This logging cannot remain in the application due to memory constraints. I wa...

How do I disassemble a Python script?

Earlier today, I asked a question about the way Python handles certain kinds of loops. One of the answers contained disassembled versions of my examples. I'd like to know more. How can I disassemble my own Python code? ...

What techniques and tools are available to help debug SiteKiosk clients?

I am responsible for the maintenance and development of some SiteKiosk client machines. Currently, we are running version 6 of the software, and do not have an intention of upgrading in the near future. I have a demo machine where I can turn on whatever functionality I want to facilitate my debugging, but the embedded browser in SiteKi...

Is there something like linux ptrace syscall in Windows XP/2003?

Reading http://stackoverflow.com/questions/864839/monitoring-certain-system-calls-done-by-a-process I'm wondering about a Windows equivalent to the ptrace syscall or a programatically workaround. I had an answer in http://stackoverflow.com/questions/865106/is-there-something-like-linux-ptrace-syscall-in-windows but It requires a recent ...

I need to find the point in my userland code that crash my kernel.

I have big system that make my system crash hard. When I boot up, I don't even have a coredump. If I log every line that get executed until my system goes down. I will find that evil code. Can I log every source code line in GDB to a file? UPDATE: ok, I found the bug. It was nasty. The application I started did not take the system d...

Visual Studio 2008 Pro does not open DMP files. What could be wrong?

Microsoft documentation on Visual Studio states, that in order to open dump file, you need to do "File -> Open -> Project" routine. However, for some reason, in my case VS 2008 does not see dump files - there is no Dump files (.dmp; .mdmp) option in the files filter. Dmp extension is not associated with VS 2008 either. What could be wr...

Why does getting the mocked instance created with Moq throw a System.BadImageFormatException?

This question may be related to another question and it certainly results with a System.BadImageFormatException. Maybe it's the same thing but exposed differently? I have the following the code: public interface IFoo<T> where T : class, new() { T FooMethod(object o); } public interface IFooRepo { F GetFoo<T, F>() where T : class, ...

dynamicaly loaded js function does not appear in firebug js debugger

Hi. There is a page1.html (I open it in browser): <div id="content"> </div> <script type="text/JavaScript"> jQuery.ajax({ type : "GET", url : 'page2.html', dataType : "html", success : function(response) { jQuery('#content').append(response); } }); </script> Code of the page2.html: <script...

where i can learn about JVM debugger protocol ?

Hello all i want to do test and build simple debugger GUI in c++ that debugging Java as i read from view docs i will have to work with the JVM debugger protocol do any one here have experience with it? where can i learn about it ? Thanks ...

GDB cheat sheet

Can anyone recommend a good cheat sheet for gbd? I'm experienced with windbg commands, I'm looking for gdb equivalents for lml (list loaded modules), ~*k (all threads stack), ba (break on access), dt (dump type), dv (dump frame variables), sxe (set up SEH handler) etc. I understand there won't be a 1 to 1 equivalent, but I just need a co...

how to inspect objects while debugging groovy (eclipse plugin or other)

hi, I have started to learn groovy by building a pet project. I fetch some html with XmlSlurper and parse it etc. I am using eclipse3.4 with groovy 1.6 plugin. I am having a very difficult time trying to iterate thorugh all the html elements etc. I expected to set some breakpoint, inspect the current variable where my contents are, see...

How to debug/break in codedom compiled code.

I have an application which loads up c# source files dynamically and runs them as plugins. When I am running the main application in debug mode, is it possible to debug into the dynamic assembly? Obviously setting breakpoints is problematic, since the source is not part of the original project, but should I be able to step into, or brea...

watch a class object at memory addresss on Visual Studio

I am debugging a user dump file and there is this class member function at the top of the the stack trace the stack trace is something like this - msvcr80.dll!invalid_parameter_noinfo() + 0xc bytes - **1st FRAME msvcr80.dll!invalid_parameter_noinfo() + 0xc bytes - **2nd FRAME myDLL!myClass::myClassMemFunc(int val = 90) ...

My app hangs while being debugged

I am using Delphi 2009 on Vista Ultimate 64 bit. I run my application from within the Delphi IDE, and after some time (a minute or 2) my application will hang. Looking at the event log, the hang is associated with a thread exiting. It is not the main thread, but a thread that has been started just after the module RSAENH.DLL has been l...

how to get all stack traces with VS 2008 debugger

I'm trying to help debug a hang with the VS 2008 debugger. If I double click a thread in the Threads pane, I can see the trace for that thread in the Call Stack pane. My question is: Is there a way to get all the call stacks for all the threads in one shot, without having to select each thread individually? I want to email the trac...

ole32.dll causes GPF. How to interpret DebugDiag report?

Hi, My app (EasyJob) causes an access violation error on exiting. This only happens on some systems, mostly Vista, but it has happened on some XP boxes. The application is written in VB6. After finding a system that shows this behavior, I ran DebugDiag on my process and got this report: Function Arg1 Arg2 Arg3 0x04246c81 ...

Debugging stored procedure in SQL Server 2005 from Visual Studio?

I see a lot of frustrated questions here and elsewhere with no clear answer. I am trying to get the stored procs to debug, but with no success. Client: either VS2005 or VS2008, works in neither. When I select 'Step into Stored Procedure' from the sproc context menu, I get "Cancelled by User' in the debug window and that's the end of...

How can you set-up PHP + xDebug + (x)Unit + Eclipse to work with breakpoints in unit tests?

Hi guys, Have tried for quite some time to get this to work correctly but to no luck. Basically, I have Eclipse (3.3) with PHP Development Tools (PDT), and the PDT XDebug plugin as well as the SimpleTest eclipse plugin. What I want to do is debug code invoked by SimpleTest unit tests. SimpleTest clearly can see XDebug, because I can ge...

Apple Event Handler Failure (Python/AppScript)

I have written the following really simple python script to change the desktop wallpaper on my mac (based on this thread): from appscript import app, mactypes import sys fileName = sys.argv[1:] app('Finder').desktop_picture.set(mactypes.File(fileName)) However when I run it I get the following output: Traceback (most recent cal...

Why does F10 (step over) in Visual Studio not work?

I'm debugging a (web) project in Visual Studio 2008. I'm hitting a breakpoint. F10 continues to the next line, as expected, but the next F10 just stops debugging and the code continues without any more debugging (like pressing F5). Why is this happening? I have tried 'clean solution'. Other breakpoints sometimes(!) skipped, even in the...