debugging

How to allow other view have the delete_class_path in RoR?

I have a object called "category", in my view/store/manage.html.erb, I want to do this : <%=link_to_remote category.name, :url => delete_category_path(category), :confirm => 'Are you sure?', :method => :delete%> But it show me the NoMethodError, how can I do that? This is the error from RoR: undefined method `delete_categ...

While debugging javascript, is there a way to alert current call stack?

For simple javascript debugging I'll use alerts to show variable values and the like. Is there a way to get the current call stack in javascript to be able to display it in an alert? Thanks. ...

xCode Release configuration behaves different.

I'm making a iPhone app written in Objective-C using the Cocos2d game engine. I'm using xCode v3.2.1 with the 3.1.2 iPhone OS. At this point I have always ran my project under Debug Configuration. When I set it to release configuration certain elements of my game are no longer behaving correctly. My logic that worked in the debug configu...

Debug a hosted asp.net site?

Hi, Is it possible to debug (with VS 2008) a site at my host? I have no particular control of the server, I'm only allowed to upload my website files to the server. I can however upload .pdb files etc. The reason for me wanting this is because the site works fine on my dev machine, but refuses to show even the first page when deployed ...

How to skip common classes in VS 2008 when stepping in?

How can I skip common classes in VS 2008 debugger when stepping in? For example, I do not want debugger to step into any of the std:: classes. How can I achieve that? I've found ways of doing this in VS 2005 and earlier, but not 2008 ...

PHP - recognize when the function was called

Hi, I'm thinking about how to find from where any function was called. The problem is that I need to find where the PHP is calling mail() function. One way will be to use register_tick_function(), but I'll need to open each file and check what is on each line. The project is huge, it will take really long to parse each file in PHP. Any ...

How to debug hanging main thread in Delphi application

Hi, I've written application in Delphi 2007, which some times hangs (not even every week, application is running 24/7). It looks like main thread gets stuck. What are the options to pinpoint the cause for this problem? Application is written in Delphi 2007, it uses RemObjects, DBExpress with Firebird, OPC communication using COM. ...

How to debug a COM dll in Delphi ?

Hi, I try to debug a COM dll (TAutoObject) in Delphi and my break point are not green. I put my option like this : host : c:\Program Files\Internet Explorer\iexplore.exe param : c:\software\test.html My test is well lanched but no breakpoint in Delphi what is the way to to this ? ...

Can't debug code when VS 2010 debugger started with external program.

This is really strange and I can't seem to figure out why it won't work. I have a C# dll that is a add on for another program, the main program is not mine or a .Net app so I am starting it with Start external program in the debugging tab and and passing my program as a command line and the program starts and loads my add on however my ...

Coding for ease of debugging

I am looking for tips on how to aid my debugging by adding code to my application. An example so that it becomes more clear what I'm after: in order to detect dangling objects held by shared_ptrs I have created a tracker class that allows me to keep track of how many objects are alive and where they where originally created, which is the...

Debugging PHP using Eclipse PDT or Aptana

Guys, has anyone been able to remotely debug a PHP Web page that uses Ajax extensively? (I'm using Zend Debugger, by the way.) When I debug, the parts of the page that are queried through Ajax HTTP GET are not shown. Is any way fix this? ...

How to use NetBeans to debug C++ libraries not compiled with NetBeans?

Hello, I am using NetBeans 6.8 on Redhat Linux. Does anyone know how to configure NetBeans to debug (step into) libraries not compiled with NetBeans? In my particular case, I'm trying to debug the VTK library which is built using cmake with the Debug flag set. I've written a C++ application that uses the shared libraries from VTK. A...

Debugging PHP on NetBeans 6.8 without Apache

Hi all. Is it possible to debug PHP projects on Glashfish with NetBeans 6.8 without installing Apache server? After I press CTRL+F5 im getting 404 not found error. As ASP.NET developer I have (I think) similiar developer server bundled with Visual Studio, so there is no need to install any other server like IIS. Am I right that Glassfi...

How to find dll loaded by a process in AIX?

How to find which dynamic libs .so are loaded currently by a process, also those dll are dynamically loaded with dllopen. I want to debug a process to find out which libs its using currently. ...

No dynamic page is in script document when I debug my aspx page

I'm trying to debug javacript code in my aspx page, I insert a breakpoint, and press F5 for debugging, but there is no dynamic page created in script documents. Why the asp.net development server not create the dynamic page? any ideas? ...

Netbeans 6.8 C++ IDE: program crashes while debugging in cygwin on windows

Whenever I try to debug my project in Netbeans 6.8 C++ IDE with cygwin on windows, it gives me the message window "Application crashed".(Netbeans IDE does not crash but only my program)There is no problem while running only, but while debugging, it crashes. Please help ...

How to elicit debugging information from end-users?

During beta testing, sometimes our end-users unfortunately encounter a bug. This inevitably leads to a bug report, where the Joel on Software article Painless Bug Tracking suggests: Every good bug report needs exactly three things. Steps to reproduce, What you expected to see, and What you saw instead. This is usua...

Using in the same time Boost in release and debug mode

Hello, The title is just for teasing. :-) I know it isn't possible, but here is my problem. My app (a DLL, actually) uses Boost. It also uses an external API, which also uses Boost. The external API is of course provided in a release binary, anlong the needed release Boost binaries. When I compile/link my DLL in release mode, I have n...

Has anyone a setup of Hudson CI server combined with the symbol server (symsrv.dll)?

Dear ladies and sirs. We have Hudson CI server which uses msbuild to build our C# code. Does anyone who uses Hudson CI server also has the symbol server (symsrv.dll) configured? I would like to understand what is the best way of combining the two. Thanks. P.S. Apparently, ServerFault is not the right place for this question. ...

Rails debugging in production environment

I'm creating a Twitter application, and every time user updates the page it reloads the newest messages from Twitter and saves them to local database, unless they have already been created before. This works well in development environment (database: sqlite3), but in production environment (mysql) it always creates messages again, even t...