I'm debugging a C++ program with GDB on Linux, and I need to see the value of a member variable while the program is running. The member variable, unfortunately, is named list, which happens to be a GDB keyword. So when I try:
print m_operations.m_data[10].m_data.list
I get...
A syntax error in expression, near list'.
I tried all s...
Hi all,
I am using the Flex Builder 3 debugger almost every day and it's starting to be a real pain that the 'Variables' tab in the 'Flex Debugging' view doesn't show local variables, only 'this' is displayed.
Also I can not add Watch Expressions for local variables.
Am I forgetting something here or is the debugger just very limited...
While debugging an ASP.NET application, I want to get a print-out of the entire state of a very large object. I want all the properties and values in that object and the same for every object-property, recursively.
Because the front-end of the application times out after a significant delay, I can't add a watch or use the Immediate wind...
A program for which I do not have the source code to is executing a third-party EXE file. I'd like to find out the arguments that it is sending to the EXE file (i.e. thirdparty.exe -c "foo" -d "bar"). I do know that the initial program is written in Visual Basic.
Are there any tools that I can run that will monitor the execution call a...
I'm going crazy and wasting a lot of time. I am running in DEBUG, checked the web.config to ensure debug=true is there, checked the code to ensure I am reaching it, cleared all temp files and pdb's. The only thing that works is to continually kill the solution, create a new solution and add all the projects again. I shouldn't have to do ...
public static void parseit(String thexml){
SAXParserFactory factory = SAXParserFactory.newInstance();
SAXParser saxParser;
try {
saxParser = factory.newSAXParser();
DefaultHandler handler = new DefaultHandler() {
public void startElement(String uri, String localName, St...
public static void parseit(String thexml){
SAXParserFactory factory = SAXParserFactory.newInstance();
SAXParser saxParser;
try {
saxParser = factory.newSAXParser();
DefaultHandler handler = new DefaultHandler() {
public void startElement(String uri, String localName, String qName, Attributes att...
I'm printing a string(char *) in gdb
(gdb) p l
l=0x9aa1f48 "up2 129104596496602200 19 0 0 3 0 eth1 XX :001CB",'0' <repeats 12 times>, "DC"
Is there a setting to have p print the whole string and not fill inn the "repeats ... ". While at it - also extend the default printable length of a string, p seems to cut off if the string is quit...
I have an instance variable with several members, many of which have their own members and so on. Using the debugger and watch variables, I found a string variable with a specific value that I need by diving into this variable's members.
However, after spending some time on other things and coming back to this, I am now unable to find w...
What rarely used debugging tools you found useful ?
My recent debugging situation on Visual Studio required trapping the breakpoint on fresh built 32-bit DLL, which was loaded by GUI-less executable, which was spawned by COM+ server on remote x64 machine, which was called through RPC from actual GUI. As usual, all worked well on all 32 b...
I have an ASP.NET application whose .aspx files include
<script language="VB" runat="Server">
blocks. I am attaching the Visual Studio debugger to IIS 7 (w3wp.exe), but Visual Studio won't let me add breakpoints inside these script blocks. It says
This is not a valid location for a breakpoint
How do I debug these blocks?
...
EDIT: Like I said, Xdebug type responses are not really that helpful here. I've added some more info below:
I am planning on writing a small PHP debugging solution and would like to poll Stack Overflow for some ideas before I get started. The goal is to simplify debugging a PHP based web app.
The tool should be able to plug into an ex...
How to run a windows service project from visual studio.
I am building a windows serivce in visual studio 2008, I have to always run the service from control panel and then attach the debugger to running instance of the service. Its kind of annoying since I am cleaning a lot of code and need to restart my service many times during devel...
I've never quite understood how the argument lists for operator overloading are determined in a systematic way, and I'm particularly confused by a problem I have now.
When you overload a unary operator it has one argument, or zero if it's a class member. When you overload a binary operator it has two arguments, or one if it's a class m...
DirectX SDK Febuary 2010 download page has information about new features, including improvements in PIX with support of compute shaders analysis:
PIX has much-improved support for
analysis of programs that use Direct3D
11 features, including compute
shaders, tessellation, and dynamic
shader class linkage.
I was interested...
I am debugging an application written in VC++.
How do i make WinDbg print the function name and all the values of the arguments to the functions during execution of the debuged process?
...
I have 3 AJAX functions to move data between a Django app on my website and some JavaScript using YUI in the browser. There is not a major difference between them in terms of their structure, concept, code, etc. 2 of them work fine, but in the 3rd one, I get one spurious HTTP request immediately after the intended request. Its POST data ...
I have developed an iPhone app using the navigation controller structure. The active SDK is set to iPhone Simulator 3.1.2 (Base SDK). When the Active Configuration is set to Debug, it works. However, when the Active Configuration is set to Release, the app crashes when it tries to load the second view controller. Here is error message:
...
What are the 'best practices' when it comes to debugging core dumps using GDB?
Currently, I am facing a problem:
The release version of my application is compiled without the '-g' compiler flag.
The debug version of my application (compiled with '-g') is archived (along with the source code, and a copy of the release binary).
Recent...
Hey guys I'm trying to set up a nachos project in Eclipse on my ubuntu machine. I meticulously followed the instructions here:
http://inst.eecs.berkeley.edu/~cs162/fa06/Nachos/eclipse/#nachosfs
It runs fine, but when I set a breakpoint and hit debug I get:
New_configuration [Java Application]
nachos.machine.Machine at localho...