debugging

Generating debug symbols for Symbol Server from CI process to aid remote debugging

Does anyone have any advice about extending our SVN & Cruise Control CI process to populate a Symbol Server? We are trying to remotely debug test environments for our ASP.NET 2.0 C# website and have been running into problems getting the correct symbols to always load. Our build process is done in release mode not debug mode so how do...

Limiting resource usage for debugging an application on linux

I have a C/C++ application that crashes only under heavy loads. I normally use valgrind and gprof to debug memory leaks and profiling issues. Failure rate is like about 100 in a million runs. This is consistent. Rather than reproduce the traffic to my application, can I superficially limit the resources available to the debug build of th...

How do I unhide Debug -> Attach to Process in Visual Studio 2008?

I'm using Visual Studio 2008 Professional at work. Recently, I got a new workstation. Someone else installed all the software for me. For some reason, I do not see the option "Attach to Process" on the debug menu. I looked in the options, but I don't see an option that seems like it should hide it. How do I make the option "Attach t...

Stack Level Too Deep in Production Rails App - How to Get Details?

Hey, I am getting up and running with Spree in production on a 256MB Slicehost slice with MySQL, Mongrel, and Nginx. I am getting this error every time I try to access any URL in the app: SystemStackError (stack level too deep): compass (0.8.17) lib/compass/app_integration/rails/action_controller.rb:7:in `process' vendor/plugins/...

Evaluating expressions using Visual Studio 2005 SDK rather than automation's Debugger::GetExpression.

I'm looking into writing an addin (or package, if necessary) for Visual Studio 2005 that needs watch window type functionality -- evaluation of expressions and examination of the types. The automation facilities provide Debugger::GetExpression, which is useful enough, but the information provided is a bit crude. From looking through the...

XCode - iPhone SDK Zombies

I was just wondering if NSZombiesEnabled is supported when debugging applications using built with a target of the iPhone SDK 3.x Also if it is supported, is there anywhere I can get a list of the possible levels supported? Regards ...

Is it possible to view the messages outputted by Microsoft ReportViewer in my own front-end?

I would like to view the messages displayed by ReportViewer in the output window of Visual Studio when a report is viewed, in my own application. I assume it would involve intercepting the debug or console output messages. Is this possible? I am using Microsoft ReportViewer 2008 in local mode. ...

How do set a breakpoint on a method within the .net framework

I wish to set a breakpoint on the System.Threading.SynchronizationContext::SetSynchronizationContext static method so I can find out when the synchronization context is being set. However I can’t find how to set a breakpoint in a method I don’t have the source code to. (This should be easy!, but when I try to set the breakpoint on a...

Help with understanding why UAC dialog pops up on Win7 for our application

We have a C++ unmanaged application that appears to cause a UAC prompt. It seems to happen on Win7 and NOT on Vista Unfortunately the UAC dlg is system modal so I can't attach a debugger to check in the code where it is, and running under msdev (we're using 2008) runs in elevated mode. We put a message box at the start of our progr...

Worst side effects from chars signedness. (Explanation of signedness effects on chars and casts)

I frequently work with libraries that use char when working with bytes in C++. The alternative is to define a "Byte" as unsigned char but that not the standard they decided to use. I frequently pass bytes from C# into the C++ dlls and cast them to char to work with the library. When casting ints to chars or chars to other simple types w...

web analytics with path click analysis

trying to look for an web analytics service(preferably free) which gets the usual stuff, browser, hits, OS, etc. in addition, it needs be able to track user click paths, and some how be able to tie in with my own database, maybe perhaps pass in JSON objects similar to PIWIK. i am tracking user click paths strictly for debugging purpose...

Javascript debugging - Show variables in use

Is there any way I can view the variables used in a javascript function without trawling through the code? Using javascript on a server so cant really install an app to debug, is there a javascript function i can use in some way? ...

How to print additional information when assert fails?

Often one wants to print out additional information if an assert fails. A way to do that is this: assert(vec.size() > i || !(std::cerr << "False: " << vec.size() << ">" << i)) This way the actual sizes are printed when the assert fails. But it's ugly, and also it's easy to forget the ! , which will make the assertion condition true...

Can DDD account for strings?

I am trying to figure out a problem in my c++ code and have DDD to debug with on a Sun machine. I am required to use strings per some standard we have. But whenever DDD encounters a string variable, it always comes up as being empty. I want to remember having the same trouble using CVD before on an SGI. Short of re-writing my code to ...

How can I set Visual Studio to show a StackTrace for first chance exceptions?

Right now, it just shows: A first chance exception of type 'System.ArgumentException' occurred in Microsoft.Stubs.VsPackage.dll Is there any way I can get it to include a partial stack trace with the exception message without having to break into the debugger? ...

Why does Loader Snaps not work when attaching to a process?

When I configure GFlags to show loader snaps on an image MYEXE.exe and run the executable from windbg I get loader snaps output in the debug window. But when I use windbg to attach to the process already running I do not, even though I enabled loader snaps before the process was started. How can I get loader snaps to work when attachin...

Why does Java code slow down in debugger?

Some CPU intensive routines get dramatically slower when run through a debugger. Why is this? Currently I'm just using IntelliJ to step through code running in JBoss. When I start JBoss, I use these options: set JAVA_OPTS=-Xms512m -Xmx1024m -XX:MaxPermSize=256m -Xdebug -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n ...

illegible font in error messages of Flash Debug Player??

Having a strange issue with the font in the DebugPlayer error messages. For some reason the error messages are in a decorative and illegible font. I have no idea how to change this. I'm in latest OSX, with the latest version of the FP10 debug player installed. ...

Why is console.log statements not appearing in my FireBug console anymore?

I'm using FF 3.6 and FireBug 1.5.0 my console.log statements are no longer appearing in my firebug console. is anyone else experiencing this? is there a setting somewhere that got switched that I don't know about? ...

page level watchpoints in gdb

Is there anyway in GDB to put a memory watchpoints on page level? I want to break on first access to a page, this access can be anywhere on that page, so i can't put a normal memory watchpoints - since I don't know the address - Also, is there anyway to change the page protection of memory page in GDB ( say change from r/w to no access )...