debugging

Select which method to "Step Into" in debugger

Netbeans has a nice "Step Into" feature where if there are multiple method calls on the same line, you can use the arrow keys to choose which one you meant. You can see a screenshot and description on this new and noteworthy page. I am wondering, does Eclipse have the same feature? I see that Eclipse does have Step Filtering, but that's...

Why is pointer access slower than vector::iterator access? (compiler code generation)

OK, the question title is a bit crappy, but I didn't really know how to phrase this better. The problem I have is that given a std::vector<T> vs. a T* + size_t count my compiler (Visual Studio 2005 / VC++ 8) will actually generate worse code when looping over the pointer than when looping over the vector. That is, I have a test struct ...

Why doesn't "Attach to Process" allow other transport types? VS 2008

A co-worker posted this on an MS forum but was not able to get an answer. He's using Win7, VS 2008 (C++) pro - not the express version. When he selects Tools->Attach to Process the dlg box with the dropdown for "Transport" shows only "default" and the Qualifier field is greyed out and only shows his machine name. He wants to debug...

How to replace Javascript of production website with local Javascript?

On my production website, I have compiled Javascript. <script src="/js/mycode.min.js"></script> It would be very convient for debugging if I could make my browser replace that with <script src="http://localhost/js/mycode1.js"&gt;&lt;/script&gt; <script src="http://localhost/js/mycode2.js"&gt;&lt;/script&gt; ... I know I could manip...

JRuby Debugger Options with simple text editor

Hi, I am developing JRuby on textmate, do I have any debugger options? At the moment I am using puts which is painstaking and drawn out. Is there anyway, I can break during running code in the terminal and check values there? Cheers Paul ...

Debugging ncurses with Eclipse CDT

I'm writing a C++ application using ncurses in Eclipse CDT however I can't run/debug my app in eclipse because the console in eclipse does not work with curses. My app runs fine if I run it from a terminal but I just added some new code and now I'm getting a segmentation fault so I'd like to use the debugger in eclipse to help me fix the...

Outputting an array with FirePHP

How do you output an array with FirePHP? I'm using FirePHP in a Zend Framework project. I can output the value of individual variables with: $logger->log('foo = '.$foo, Zend_Log::INFO); and see something like: foo = "Ponies!" However if $foo is an array I only see: foo = Array and the word Array is not clickable or hoverable or...

Any way to stop Javascript from failing silently?

One thing that is driving me nuts is how Javascript fails silently in many different situations. (removed example because it confuses the point of my question) Many times I have come across an error that will give an error message when typed into the Firebug console, but when it runs within the page script, it fails silently, even with...

Debugging Javascript using IE Developer Tools

I've been using the above tool for some time now but recently I've had an issue when trying to debug javascript. I get the following message: Unable to attach to process. Another debugger might be attached to the process Visual studio seems to be debugging the javascript for me, which I don't want it to do. Any idea how I stop this? ...

Debug GWT application in a remote browser

I try to debug the GWT app in a remote browser (located on other computer than Eclipse instance) for example in VMware environment. Unfortunately while opening address below there is no connection. http://192.168.1.2:8888/app_test.html?gwt.codesvr=192.168.1.2:9997 I've tried adding -Dgwt.args="-bindAddress 0.0.0.0" to Arguments -> VM ...

iOS crash reporting, e.g. during beta testing

I'll be ready to start beta testing my iPhone app in the next month, and I guess I should be expecting it to crash once or twice. It would be nice to get the crash report -- and whatever supporting info I can -- back to the mothership. Ideally, this would require little to no work on the part of the beta testers. There are tools and met...

Debugging MVC app with EEF and heavy jquery implementation.

I am working with a new project which is really complex and is written with MVC 1.0 and heavy jQuery implemenation. Since there is not a lot of documentation it is almost impossible to trace the flow of commands in the entire application. So I am trying to debug it and learn the implementation, but with jquery implementaion, it gets hard...

Debugging Rails in Netbeans 6.9 suddenly stopped working

Hi, Yesterday I was perfectly able to debug a rails application using Netbeans 6.9.1 (just clicking on the Debug Main Project). But now, suddenly when I try to debug I see the "Server Startup" at the bottom... but after 30 secs aprox. a message appears in the status bar saying "Cannot connect to web server, cannot show localhost:3000"....

Which IDE are you using under Unix/Linux for visual debugging?

I usually build the application in windows and test /port the application in UNIX using VI But what is I need to build the application from scratch in unix/linux in shell what option do I have to Visually debug (break point and such .. ) or syntax helpers? ( c/c++) ...

My website keeps crashing IE, can't debug.

I have a website that suddenly started to crash internet explorer. The website loads and starts executing javascript but somewhere in there the machinery explodes. I don't even get a script error, it just crashes. I've tried to manually step through every single line of js with the built in debugger but then of course the problem doesn'...

Django doesn't create a {{ debug }} variable in DEBUG mode

As of the documentation, there should be variables called "debug" and "sql_queries" usable in templates if all requirements are met. I have set the following (and checked their values with the debug toolbar): DEBUG = True TEMPLATE_DEBUG = True TEMPLATE_CONTEXT_PROCESSORS left at its default value (containing 'django.core.context_proce...

VS2010 (Express) debugger trapping Ctrl+C in Console app

The following has been edited. Hans seems to have retracted his answer, but his questioning has helped me to narrow down the problem statement: Extra Clarity I do not want to modify the behavior of Ctrl+C. I'm not looking for a work around. I simply want the debugger to NOT break when Ctrl+C is pressed during a debugging session. Pl...

Android Debugging with Eclipse on my HTC Evo: Augh!

I've turned on USB debugging. I have the latest HTC Sync and android SDK components. I'm using Eclipse 3.5 on windows XP. I'm running Android 2.2, and am asking for 2.1 as the minimum in the debugger. I work in Eclipse/Java just about every day, and have for several years. I'm even writing an Eclipse plugin at work as I type this......

Cannot start debugger on Visual Studio 2010 (F5) However, ' attach to process' does work (slow). How to fix?

The environment: Clean (new) install of Windows 7 64bit. Clean (new) install of Visual Studio 2010 Professional (10.0.30319.1). Windows Update is up to date. The problem: I cannot start the debugger on Visual Studio 2010 (hit F5): 'Unable to start debugging on the web server. Unable to connect to the web server. Verify that the web s...

Test Class not building for x86

So I am getting an exception thrown that my Test project cannot open the SQLite assembly. However here is the output when I compile: ------ Build started: Project: Budget, Configuration: Debug x86 ------ Budget -> C:\Users\Scott\Desktop\Development\Budget\Budget\Budget\bin\Debug\Budget.exe ------ Build started: Project: Test, Configur...