Why can't I debug?
When I was about to debug C++ program in VS2005,the program didn't stop at the breakpoints. The VS said"No symbols are loaded for any call stack frame. The source code cannot be displayed". What can I do? ...
When I was about to debug C++ program in VS2005,the program didn't stop at the breakpoints. The VS said"No symbols are loaded for any call stack frame. The source code cannot be displayed". What can I do? ...
When I'm debugging C++ mixed (managed/unmanaged) projects in Visual Studio 2005, I often get weird data from the debug watches, like below : (btw, the variable i_processName is a const std::string & ) Note that the variable actually holds valid data - if i print it to stdout, the printed string is just fine, thanks for asking. The sim...
I have a multi-threaded .Net app in which thread-local storage is used to hold a flag of sorts. I have reason to suspect that the flag is being set incorrectly in one of the threads and would like to use the VS debugger to inspect when and where the flag is being set. Once I have stopped the application at a break point, can I use the i...
I have to debug a massive program, and I was wondering if there is a way to scan the memory footprint of a running .NET application, and find a string property that is set to a certain value? ...
Can I make Flex Builder store all the output in the console window to a log file ? ...
I have some code from my VB.NET 1.1 days that allowed me to dynamically check if Debug was enabled in web.config. I figured why re-invent the wheel in turning on/off logging if I could simply have the web administrator enable debug. Here is the code I used in VB.NET that worked just fine: ConfigurationSettings.GetConfig("system.web/com...
I'm "just" a hobbyist programmer, but I find that as my programs get longer and longer the bugs get more annoying--and harder to track. Just when everything seems to be running smoothly, some new problem will appear, seemingly spontaneously. It may take me a long time to figure out what caused the problem. Other times I'll add a line of ...
I asked this question previously: http://stackoverflow.com/questions/495268/any-good-tutorial-for-moving-from-eclipse-to-vim From the inputs, I started using GVIM instead of Eclipse. I added ctags to it and I am able to navigate now comfortably. Only problem left for me is "Debugging"? I tried searching for some links, and couldn't a...
What bugs did you find in your / others programs that taught you much about programming? Did you find bugs that opened surprising insights for you? Was there a bug that changed the way you think about programming? ...
I'm trying to use gdb in postmortem mode with the core dump of a crashed process. I can get a stack trace, but instead of showing me the actual location in the offending function, gdb shows me the line number of a two-line inlined function that the offending function calls. The inlined function is called many, many places; how do I fin...
I am working on some code to load some bootstrapping data into my Grails app. Something is not working with one of the classes I am trying to create, so it would be very convenient to be able to run that code interactively against the grails runtime environment and I am wondering if there is a way to do that. I know about the Grails ...
I would like to have my error handling code behave differently if it is running under the debugger. Specifically, if I am running on a handset, not attached to a debugger and fail an assertion I want to send the error to my server. When I am under gdb, I want to break into the debugger. Although I can imagine how Apple would write the c...
Is there a way to get an automatic feedback if an error (even syntax errors) occurs when running a JavaScript on the client side? I was thinking of something like this: <script src="debugger.js"></script> <script> // some script with an error in it </script> And every time the debugger notices an error it sends a feedback to the ...
What I don't understand about C/C++ is: Yes, everyone uses it to get blazingly fast executables, so they compile with optimization turned on. But for compilation with debug information turned on, we don't care about speed. So why not include more information in that compile mode, for example detect some segfaults before they happen? E...
Hi folks, i have the following line of code in VS2008. VirtualPathData virtualPathData = RouteTable.Routes.GetVirtualPath(_viewContext.RequestContext, "Home", pageLinkValueDictionary); I wish to debug this GetVirtualpath(..) method .. to see what it's trying to do. I'm assuming i need to grab the symbol...
I have a .Net program that, as one of its functions, takes a file from a user-specified directory and puts it in another, special, directory, specified via UNC (which may or may not be local). I don't open any of these files in this part of the code. There's this bizarre bug I'm having where, on a Windows Server 2003 SP2 VM, this progra...
I’m trying to connect with Application Verifier for Mobile 5.0 to Windows Mobile 6.0 Professional device and I fail. Is this even possible? ActiveSync and VS2005 debugging on this device work fine. I’ve setup Application Verifier transport and startup server as Microsoft ActiveSync, if I click Test button it says “Connection to device...
Bleh; Knowing how to ask the question is always the hardest so I explain a little more. I'm using CAxWindow to create an IE window internally and passing in the URL via the string class argument: CAxWindow wnd; m_hwndWebBrowser = wnd.Create(m_hWnd, rect, m_URI, WS_CHILD|WS_DISABLED, 0); It's part of an automated utility for anyone to...
I get a segmentation fault when I cancel my program. I am using gdb for debugging, the problem is that when I press Ctrl-C while I am debugging gdb does not cancel the program and do what it is supposed to do that is stop it. What I want is do the Ctrl-C and do not allow gdb to stop it. Is there any way to do this? Any other recommendat...
I'm seeing the following errors in my console logs: HPROF ERROR: unable to resolve a method id HPROF ERROR: got NULL trace in obj_alloc HPROF ERROR: duplicate obj_id in object_alloc HPROF ERROR: unable to resolve a method id HPROF ERROR: got NULL trace in obj_alloc HPROF ERROR: unable to resolve a method id HPROF ERROR: got NULL trace i...