debugging

Export Javascript Console log from Google Chrome

Is there any way to export messages logged to the javascript console in Google Chrome? If not, can anyone suggest a good way to diagnose javascript problems on a client's machine? I have not been able to replicate the problems locally, despite setting up an identical environment. ...

Debug Native Code on Motorola Droid

Hi all, I'm trying to debug an application build with the NDK on a Motorola Droid. I'm following the instructions here and I've had success in the past on an emulator (I have root access obviously) but when I try to start gdbserver :5039 --attach 1082 through the adb shell, I get a gdbserver:permission denied. Obviously as this is...

Web App Tracing/Debugging

Hi, Can people pls suggest any open source tools that can be used to trace/monitor a persons web activity inorder to determine any code issues for a particular web app? Basically, I have a web app that I have developed and some users are experiencing page stalls and was wondering on what the best way to track down these issues? Thanks...

how to use PHP magic constants from other classes??

Hello All, i have created below function in a file info.php to debug variable & data during page load class Info { static function watch($what,$msg='',$more=FALSE) { echo "<hr/>"; echo "<br/>".$msg.":"; if( is_array($what) || is_object($what) ) { echo "<pre>"; print_r($wha...

possiblity to debug user-extensions.js in selenium

Hi, i have a webapp which is tested by selenium. Everything works well: writing tests in java, setting breakpoints in my webapp through firebug. unfortunately i am not able to debug the user-extensions.js it self: After starting the java-test, two firefox windows are opened. One holds the webapp to test, the other one holds the data-fl...

How to put breakpoint in class without having it's source?

I have a web application where I need to find all classes that accesses the http request object (because one of them is causing a hard to find bug). Therefore I would like to put breakpoint in some of the methods of ServletRequest implementation. This implementation is however provided by Weblogic for which I don't have sources. How can ...

How to identify Memory Leaks in Android?

I have developed a simple application before testing it i want to check whether any memory leaks are there in the application. I don't know how to identify the leaks in Android. I am using Eclipse IDE for development. Is there a good introduction into finding memory leaks in Android apps somewhere? ...

How can I debug multiple apps by loading multiple symbol definitions with GDB?

I am doing embedded software development. By nature, I have 3 different applications running simultaneously that are guaranteed to run in different ranges of virtual addresses, e.g. App 1 runs on 0x10000000 - 0x20000000, App2 runs in 0x20000000 - 0x30000000 and so on. Generally GDB seems to accept only one symbol definition file. But i...

debugging javascript attached using bind or delegate

Hi, If javascript is attached to an event using bind or delegate (jquery), it isn't straightforward to debug which elements will respond to which event, not to know if theres anything attached to them. Is there any tool that can help watch and debug the JS attached to events, the javascript runnning on a webpage as a whole ? Thank yo...

Boost Filesystem: recursive_directory_iterator constructor causes SIGTRAPS and debug problems

I want to use the recursive_directory_iterator offered by boost::filesystem to delete a directory. But at construction time the debugger stops with the message Signal Received: Sigtrap . I can choose to continue ( have to do it several times because multiple Sigtraps are caught ) and the program will work as expected, but debugging with ...

Disabling Visual Studio Development Server - Any way to do this per project?

When debugging my website project I usually go to start options in the web project's properties and select 'Don't open a page' and 'Use custom server' with a url that's in my host file pointing to my local IIS. Even when I do this though visual studio still spawns it's own Development Server instance every time I hit f5. Is there any w...

Attaching native and managed debugger to a single process?

Is it possible to attach once in native, then open second VStudio window and attach in managed mode? ...

Django & Apache: How to debug on Testing server

I am trying to debug an issue that happens on our testing server. So how do I make it so that I can access our testing server when I start Django by typing: python manage.py runserver ? Does it have to pass through Apache? If so, I need to configure Apache somehow but I am not using mod_wsgi and so, don't know how to do this. Thanks!...

Leaks on the phone but not on the emulator?

Hey all, I have a problem and I'd like some advice. I'm working on a document viewer that's composed of the following major parts: zip library which unpacks the document container (minizip) xml library which parses the document (libxml2) UI code which renders the document on screen Nothing too complicated or fancy. On the emulato...

cannot rename or delete File instances

Hi, I'm writing a Maven plugin that deletes and renames various files using the File.delete() and File.renameTo(File) JDK methods. Roughly every second time I run the plugin, one of these operations fails, and each time it fails it's a different file that cannot be deleted or renamed. An obvious explanation for why a file cannot be del...

What causes a Sigtrap in a Debug Session

In my c++ program I'm using a library which will "send?" a Sigtrap on a certain operations when I'm dubugging it ( using gdb as debugger). I can then choose weather I wish to Continue or Stop the program. If I choose to continue the program works as expected but setting custum breakpoints, after a Sigtrap has been caught, causes the debu...

whats this in the code????

I m developing a bootloader for which i have a bin file whose assembly is somewhat like this.. -u 0 200 141A:0000 CD20 INT 20 141A:0002 FF9F009A CALL FAR [BX+9A00] 141A:0006 EE OUT DX,AL 141A:0007 FE1D CALL FAR [...

Debugger runs only once per IDE startup.

Hi there, I have been using MS VS2010 debugger for quite some time now and didn't came across any problems untill today. As a tester I start my debugger in testing mode (single test debugging) right after loading the project and it starts a whole batch of tests written. Despite starting all the tests the debugger itself works properly...

Debugging a C program

#include<stdio.h> int main(int argc, char **argv) { int a,b,c; printf("enter two numbers:-"); if( scanf("%d \t %d",&a,&b) == 2 ) { c=a+b; printf("addition of numbers= %d",c); } else { printf("please enter a valid input"); getchar(); } } how to debug this code line by line in the c-debugger? please ,...

c#: Conditional DEBUG - Does it still compile into RELEASE code?

I know that if I mark code as DEBUG code it won't run in RELEASE mode, but does it still get compiled into an assembly? I just wanna make sure my assembly isn't bloated by extra methods. [Conditional(DEBUG)] private void DoSomeLocalDebugging() { //debugging } ...