debugging

How to debug Python inside a WSC

Hi All, We're programming classic ASP for a big (legacy) web application. This works quite well using WSC (Windows script components) to separate GUI from business logic; the WSCs contain the business logic, classic asp is used for displaying returned information. The WSC's return stringvalues, ADO recordsets and in some cases vbscript...

The best Linux tool for disassembling C++ executables

Which tool is the best for disassembling C++ executables? I'm looking for something like OllyDbg but for Linux. EDIT: Sorry, forgot to tell that I want to be able to debug, too, not just to see the asm code. EDIT2: By "best" I mean something like - "the best for windows is OllyDbg - can see the asm code and can debug, it's user friendl...

Defining global source lookup settings for all JUnit tests in Eclipse

Hi. Is it possible to define global source lookup settings for all JUnit tests in Eclipse? Currently I have to set it for every test in the Debug configuration settings. If there would be a global way to do this it would be much more comfortable for me. ...

ipython showing gibberish when debugging Django with Netbeans

I'm using Netbeans for coding Django. When I insert: import ipdb; ipdb.set_trace() Flow execution gets stopped but it shows gibberish, such as: [1;32m/path/to/file/models.py[0m(344)[0;36macceptBid[1;34m()[0m [1;32m 343 [1;33m [1;32mimport[0m [1;37mipdb[0m[1;33m;[0m [1;37mipdb[0m[1;33m.[0m[1;37mset_trace[0m[1;33m([0m[1;33m)...

PHP code debugger on the fly

i have a website on my localhost, a quite complicated one with many links is there a program that can debug for example, what happens when i click one link?or i login, etc and show me each function called in each file and everything that's happening with the scripts? ...

No "walkers" in mdb (Solaris modular debugger)

Every now and then I use the mdb debugger to examine core dumps on Solaris. One nice article that I looked at to get up to speed on the possibilities with mdb is http://blogs.sun.com/ace/entry/mdb_an_introduction_drilling_sigsegv where the author performs a step-by-step examination of a SIGSEGV crash. In the article the author uses "walk...

Weblogic remote debugging using eclipse

Hi Guys, My Weblogic is installed in a Red hat OS machine. In the startWebLogic.sh i have added this line JAVA_OPTIONS="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8888,server=y,suspend=n %JAVA_OPTIONS%" When I try to connect from my Eclipse I get a "Failed to connect to remote VM. Connection refused. Connection refused: ...

Dump file analysis of Java process?

If I take dump, using Windbg, of Java process running on Windows Can I analyze (easly?) the Java heap, objects, and threads? Just like I could do with SOS for .Net process? Otherwise - how can I offline debug a problem happening on production systems? Thanks! ...

"Debug"(get information) on a running stored procedure in MS Sql Server

Hello, i aked myself if it is possible in MS SQL-Server 2005 to get information of a running stored procedure. Because meanwhile it is executing for more than 8 hours, i would like to know on what step it is or if it is even actually running at all. MS SSMS says that it is still executing the query. Thanks in advance, Tim ...

call stack missing info on mono with apache and mod_mono

How do i enable debugging/stacktrace with filenames and numbers with apache2/mod_mono? Instead of filenames and numbers i get something like this at System.Web.StaticFileHandler.ProcessRequest (System.Web.HttpContext context) [0x00000] in <filename unknown>:0 I tried using MonoDebug true in apache and recompile mod_mono with --enable...

mdbg can't debug my hello world program

In order to try out mdbg, I have the following simple hello world program: // kkk.cs using System; class HelloMain { static public void Main() { Console.WriteLine("Hello"); } } Compile it with csc /debug kkk.cs, this yields: kkk.exe kkk.pdb I then do (from the visual studio command line): mdbg kkk.exe or ...

A program does not work on one of the vmware servers. Any tips on how to find the problem are appreciated. Details inside

The VB.NET exe runs fine on one of the VMware servers but gives the following message on the clone of the same. There are no event entries and the program does not even start. Its running on Windows server 2003. Any thoughts on how to debug/tackle this? [Program Name] has encountered a problem and needs to close. We are sorry for the i...

Need Help Tracking Down EXC_BAD_ACCESS on Function Entry on MacOS

I have a program that gets a KERN_PROTECTION_FAILURE with EXC_BAD_ACCESS in a very strange place when running multithreaded and I haven't the faintest idea how to troubleshoot it further. This is on MacOS 10.6 using GCC. The very strange place that it gets this is when entering a function. Not on the first line of the function, but th...

Debugging PHP - selecting a request for an Xdebug session

Hi, I work on PHP code with NetBeans and Xdebug. I use Xdebug for step-by-step debugging and the like. I'm able to debug the flow of the default request, but not the flows generated by specific _get/_post or Ajax requests. Anybody has an idea how can this be done? When I run the debugger, a tab in my browser opened automatically with...

Catching First Chance Exceptions in Managed Code without being debugged

Is there a way to catch First-Chance exceptions, and log them without running under a debugger? I suppose another way to ask the question is can I write something that will act like a debugger being attached to my process and see what is going wrong while it happens? ...

put an exception to an exception to get the next exception on .net

I use thrown in visual studio 2005 while debugging a project to get the possible error. But when I do it, it stops with an green arrow pointing the error line that is happening, but I want to skip that error to get the next possible error. How can I skip and set the yellow arrow to make it yellow and let it to go on to the part of th...

Can't hit breakpoints for user generated actions when debugging jython code with PyDev in Eclipse

I'm implementing a GUI application in Jython, using Eclipse and PyDev plugin. The problem is that I have a hard time using the builtin debugger. When I start a debug session it just stops. Of course this should be expected as the program just creates a JFrame and then it's finished. So any breakpoints I put for different events .e.g. ...

how to initalize my ldap connection like a doctrine connection in the bootstrap.php file in zend-framework

i want to use my ldap server as a DB. then i will create persistence classes in the models directory that will extend to Zend_Ldap so that i won't have to write all the CRUD operations but how can i initialize the ldap connection in the bootstrap.php file for e.g. a database connection using doctrine can be initialized like this, i want ...

How to approach debugging a huge not so familiar code base?

Seldom during working on large scale projects, suddenly you are moved on to a project which is already in maintainance phase.You end up with having a huge code C/C++ code base on your hands, with not much doccumentation about the design.The last person who could give you some knowledge transfer about the code has left the company already...

Exceptions/errors handling library for PHP

Is there any PHP library for handling exceptions/errors(including fatal) in PHP? It should be very configurable, support log to file, send Emails, and have integration with different browsers console. ...