debugging

To analyse CPU consumption of Firefox addons in SO

I currently analyse inefficient Firefox addons by uninstalling them and seeing empirically in a long run whether the addon was a problem or not. However, this way of finding the inefficient addons is very time-consuming. I would like to know exact numerical ways to see the CPU consumption for each addon independently in Firefox the C...

ASP.NET javascript debugging does not work in 2 projects

Hi, I have 2 asp.net web applications, one of which is the main application and the second one is referencing the first application for like master pages , themes etc, and the main frameset that will point to the second application's webform based on database values (menu generated from database); All my actual forms are in the second ...

What coding conventions that help jQuery and Firebug work together?

I'm fairly new to both tools and need to go hardcore with both as I manage, monitor, and tweak a new site's design process. What sort of strategies should I ask be implemented that sets a good solid foundation for debugging, testing, and logging? [to the degree that back-end stuff can play a role - it's .net mvc thx ...

debugging javascript in php applications using visual studio

i have installed wamp server and vsphp and my development environment is Visual Studio 2008. I was easily able to debug java script by turning on script debugging in IE, however now i have a java script which calls a php script and processes it's output, i want to know how in visual studio can i do that, so that it can execute php code b...

What tools are there for debugging/stepping through a regular expression?

While there are many good online and offline tools for testing regular expressions, I have yet to find a tool (besides RegexBuddy) that lets me see the steps that the regular expression engine takes to find a match (or to find that there is no match, for that matter.) Does anyone know of any tools that do this? The reason I have initial...

How do you debug classic ASP?

I have to debug a classic asp site being served by IIS 7 (windows 2008). How can I do this? I have only worked with ASP.NET. ...

show definition (browse) in *.pdb of *.dll file

I have built a Library project (DLL) in .NET. And sometimes I use the DLL along with its PDB file as a reference in some other projects. Now in the new project, I cant browse through the code of the DLL to debug. I can only see the definitions of class/methods/variables. That's by using "show definition" by browsing through the "class ...

Problem with Classic ASP Breakpoints in Visual Studio 2005

I am trying to set a breakpoint in an ASP page that isn't working correctly. I am doing this in visual studio 2005 on Windows server 2008. Whenever I try to set the breakpoint with the mouse, the IDE opens up a different page and sets a breakpoint somewhere in that page. I don't know why it is doing this. I have better luck setting th...

Real-time query execution plans while debugging a T-SQL script

I have SQL Server 2008 and SSMS 2008, and I'm debugging a script. I can step through the script with no problems at all, but if I click the toolbar button for "Include Actual Execution Plan" (the one that adds an additional results tab with the execution plan), I'm not able to debug anymore. Instead, when I click debug, debugging starts...

How to know what made a hibernate persisted object dirty?

An object I mapped with hibernate has strange behavior. In order to know why the object behaves strangely, I need to know what makes that object dirty. Can somebody help and give me a hint? The object is a Java class in a Java/Spring context. So I would prefer an answer targetting the Java platform. Edit: I would like to gain access t...

How to debug, and protect against, infinite loops in PHP?

I recently ran up against a problem that challenged my programming abilities, and it was a very accidental infinite loop. I had rewritten some code to dry it up and changed a function that was being repeatedly called by the exact methods it called; an elementary issue, certainly. Apache decided to solve the problem by crashing, and the...

Trying to establish remote debug with visual studio running inside vmpalyer

i have this configuration a visual studio running inside virtual machine. the host machine has xp on it and so does the virtual machine. i have to run remote debug on the third machine which is connected to the host machine. i m currently facing this problem i m not able to ping my virtual machine from my host machine, however revers...

Aptana Studio with XDebug: wrong file opened at breakpoint

I'm using Aptana Studio 1.2.7 with XDebug 2.0.4 and my website is based on the zend framework. When reaching a breakpoint in my code, aptana studio opens the wrong file when there is more than one file with the same name (e.g. ..\library\Project\Db\Table\Abstract.php (breakpoint set) and \library\Zend\View\Helper\Placeholfer\Container\Ab...

ASP print out array

Hi all, I would like to print out the data, for debugging purpose. Data format would be like this cntryCode = resArray("COUNTRYCODE") business = resArray("BUSINESS") ' Payer's business name. shipToName = resArray("SHIPTONAME") the resArray consist of more than 10 records itself. I tried to print out, but fail. version 1 not w...

Viewing code of debugged .Net application BEFORE an exception is thrown

I've attached to a running .net 1.1 application using Visual Studio 2008. I have the debug symbols and the code on the local machine. If an exception occurs, the code pops up fine. However I can't work out how to view the code and set a breakpoint pre-emptively. Is there a trick? ...

CSS Rendering inconsistency on ul with Firefox being the odd ball out

Background I was creating a secondary navigation menu using embedded unordered lists with anchors and headers. Using a CSS reset sheet all headers and anchors are set to "display: block". When list-style-position: inside is set Firefox and Camino render the headers and anchors below the bullet while Safari, Camino, and IE render it inli...

Disable Debugging symbols in VS2008

How to disable debugging symbols in VS2008. I'd unchecked "load symbols ..." in Tools -> Options -> Debugging -> Symbols but directories as ".pdb" and file pingme.txt still appear in my project folders. ...

Debug Breakpoint doesn´t work only in DataModule unit - Delphi

Hello folks, Debug breakpoint's works fine in all other 38 units of my system. But, in my DataModule, that have +- 10.000 lines, delphi disables then after I launch by F9/F8/F7. In any part of source that unit, even on obrigatory steps like OnCreate, SQLConnection.Active:=true, etc. Detail: works fine until +- 20 days ago. I'm using D7 a...

Product mode with a Debug DLL

I know that a class library compiled in 'Release' mode will run faster and more efficiently than one compiled in 'Debug' mode, but does anyone know to what extent? EDIT: This is for a .net dll. ...

Segfault when calling Gtkmm textBuffer->insert

I'm just learning about gtkmm for c++. I'm having trouble getting a simple TextBuffer to add a new line of text. I have a class called OutputBox which is an HBox with a TextViewer (called messages) and a TextBuffer (called textBuffer) in it. Here is a small chunck of the OutputBox class: OutputBox::OutputBox() { textBuffer = messages...