debugging

MonoDevelop Add-ins and debugger implemmentation.

I have a MonoDevelop 2.4 Add-In that adds a suport of custom .NET-based language to IDE. It works fine - compiles, runs etc but i'm wondering how to implement a debugger support for it. Unfortunately MonoDevelop Add-In framework is not documented anyhow. Googling & disassembling MonoDevelop dlls with Reflector had no effect. If smb kno...

Debugging in mobile browsers?

I'm developing a web-application using HTML5 canvas and I need to debug in mobile browsers. Normally I'm using firebug in Firefox and the built-in developer tools in Chromium for this, but I need to do some of the same on the iPhone and on Android-based phones, like the HTC Hero. ...

Is it possible to load mismatched symbols in Visual Studio?

I've got a Windows minidump (C code) and a corresponding exe file. Unfortunately, I don't have the exact matching .pdb files, but I do have .pdbs that contain the exact same code just built at a different time. In Windbg, I can use: .symopt+0x40 To tell it to load anything, even mismatched symbol files. This works great in this partic...

How to get this ajax drop-down selector to work across all browsers?

I wrote this code that populates a <select> box with the results of an ajax call... (function() { var cache = {}; var queue = {}; $('select.country').live('change', function() { var $countrySel = $(this); var $provSel = $countrySel.closest('tr,.label-and-input').next().find('select.province'); var $p...

Debugging Visual Studio 2010 DLL Project

I'm trying to debug a C/C++ native DLL project from Visual Studio 2010. I'm attempting to follow these instructions: http://msdn.microsoft.com/en-us/library/c91k1xcf(v=VS.100).aspx I want to use the built-in debugger and be able to step code, examine structures, etc. as I would do with a regular .exe project. The instructions on the pag...

How to set a variable to NULL while debugging a T-SQL stored procedure in SSMS 2008?

I'm debugging a stored procedure via SSMS 2008. I have a uniqueidentifier variable that gets assigned from a select statement. I want to change its value while I'm debugging to NULL after the assignment. I can change the value to a different guid, but I cannot change it null. I've tried changing the value to NULL, 'NULL', (NULL), [NULL]...

conditional debug output class with templated operator<<

Hi, I'm trying to create a simple qDebug-like class I can use to output debug messages in debug mode, dependant on some debug level passed when calling the app. I liked the ease of use of the QDebug class (which could be used as a std::cerr and would disappear when compiling in release mode). I have this so far: #ifdef DEBUG static...

Debugging socket_select() PHP

So I'm writing a chat with a php socket server. CODE: http://pastebin.com/v5XKkfyy If i try to debug by print_r($read); just before line 75 i get this output Array ( [2] => Resource id #6 [0] => Resource id #4 ) PHP Warning: socket_select(): 6 is not a valid Socket resource in /var/www/chat/server.php on line 75 Warning:...

Eclipse Debugging:Thread.exit() line not exist

Hi, When I try to debug a Java file in eclipse then its finally says "Thread.exit() line not exist"->Edit Source Path . What is this message says.Also there is no method exit in Thread class.Please comment on this. ...

How to close file opened by Debugger automatically after debugging?

Hi everyone, While debugging, whenever we step into a method, the file which defines that method will be opened and remains open after debug - this messed up my files in Visual Studio. I want to be able to close those opened-by-debugger files after the debug finished. Let's say I'm opening 5 files already and start debugging. After the...

How to access a private variable in debugging

Hi, is there any way to see the values of private varibles while debugging given that that variable is in a class that is compiled to an dll and not possible to edit? ...

Getting firebug console to display different line numbers

I have wrapped calls to firebugs console.log in a logging function (that checks for existance of console along with other flags) for example: Log(string) { if (console && DEBUG) console.log(string); } my issue is that the firebug console shows the line number of the console.log function call rather then the Log function call. Is th...

Method 'ownerDocument' of object 'IXMLDOMElement' failed

I have a VB6 COM+ component which is being accessed via IE6. When running normally it works as expected, but when I am debugging in VS6 I get an error: Method 'ownerDocument' of object 'IXMLDOMElement' failed The code is as follows and it fails on the last line of this snippet: Private m_ndContract As MSXML2.IXMLDOMNode ... Dim ndEl...

Use a jar with source as source for jdb?

I have a executable jar with source compiled in and I want to debug it using jdb (no other debugger available in this environment unfortunately). I am able to debug it with jdb -classpath "${JAR_FILE}:${CLASS_PATH}" ${MAIN_CLASS} ${ARGS} How can I get jdb to use the source that is built into the jar file? Notes: Java 6, AIX, ksh ...

In logging what is the conceptual difference between Level.INFO and Level.DEBUG

This question is language-agnostic. What is the difference between the enumerated levels. In applications I've seen many INFO messages that seemed DEBUG info to me and vice-versa. ...

How can I debug an Actionscript project in Flex builder?

I am trying to use Flex builder for the first time in years. I haven't used the "Run Application" option before, and when I do that now it tells me "Errors exist in required projects" and whether I should proceed. I would like to debug those errors. Does anyone know how I can do that? PS: When I click the "Debug" button, it does exactl...

How to understand the call stack of visual studio?

VCamD.ax!CFactoryTemplate::CreateInstance() + 0x3f bytes > VCamD.ax!CClassFactory::CreateInstance() + 0x7f bytes What's 0x7f and 0x3f ? ...

Are there keyboard shortcuts for the Safari debugger?

Firebug and eclipse both let me step through code using function keys. Does Safari have equivalent capabilities? ...

boost::regex behaving differently on debug and release builds

boost::regex re("^\\s*([_\\w\\.]+)\\s*=\\s*([^\\s]+)$"); if(re.empty()){ std::cout<<"How is this possible?"<<std::endl; } That line prints in my release builds! (The debug builds are fine) Working with MSVC 2008 (vc 9.0) Compiler options for DEBUG: /Od /I "C:\Program Files\boost\boost_1_44_0" /I "C:\gtest-1.5.0\include" /I "includ...

Intercept BIG application execution after DLL injection.

Hello, I must intercept execution in very big application in many places. What programs I can use to do this? What techniques exists for this problems? Manually reverse engineering and adding hooks is maybe not optimal solution for this problem, because application is very big and some part of application can be updated in some time,...