debugging

C++ namespace problem with ARM RealViewICE

I'm using ARM RealView debug 3.1 and I'm unable to watch variables inside functions defined in a C++ namespace, the code works well and is compiled with armcc. Do any of you know a solution for this? ...

can PHP do something like p($i) and it prints "$i is 5" -- C and Ruby can... (that is, to print out "$i" automatically)

I was wondering if PHP can do this as there seems to be no good solution to it yet: p($i) and it will print $i is 5 and p(1 + 2) will print 1 + 2 is 3 and p($i * 2) => $i * 2 is 10 p(3 * factorial(3)) => 3 * factorial(3) is 18 C and Ruby both can do it... in C, it can be done by stringification, and in Ruby, there i...

debugging with vs 2008?

Hi there, currently setup vs 2008 and been doing "PURE" javascript debugging with eclipse... so i wanted to give vs 2008 a try and debugging "PURE" javascript... I have vs2008 sp1 and i have unchecked the "disable ie client sscripting" in the IE8... I now set my breakpoint (in a .js file) and Attach process. and mark Internet explorer...

Windows Batch file debugger?

Is there a program like Visual Studio that allows you to debug (dos) batch files? What techniques could I use to debug? Martin Brown answered a batch file question with a nice for / each loop. I would love to see the values of the variables as they loop. for /R A %i IN (*.jpg) DO xcopy %i B /M ...

Slowing down computer for debugging intermittent defect

Is there a way to slow down my development computer to try to replicate a defect that only occurs intermittently on a slow machine? (For what it's worth, Ableton Live has a CPU usage simulation feature, but I've never seen something like this for debuggers.) ...

Debugger won't work with JMockit

Hopefully an easy question here for someone..... I'm using RAD 7.5.2, and am writing Junit tests. I was writing them just fine with JUnit 3, and then I wanted to mock up some function calls. So I loaded up jmockit 0.9.7 and Junit 4.6. I also include -javaagent:jmockit.jar as a VM argument. When I "Run As Junit Test", it goes along w...

Making all variables in a program modifiable at runtime by the programmer, smart idea?

I was thinking of doing this with C++, basically from an external editor or something the programmer can say: MyClass::dude = "hello" where 'dude' is a static integer in 'MyClass'. What the program does at runtime is it partitions the input to MyClass :: dude = "hello" and finds the class called 'MyClass' and assigns the dude variable i...

Troubleshooting with a .NET application that doesn't start

I have a recurrent issue with .NET applications that don't start (on others systems than mine). The fact is that I cannot, unfortunately, always create a smoothly running package. Therefore I often have to send a ZIP file of my Debug or Release folder. My real problem is that these applications doesn't tell WHY they're not starting. I j...

Add Timestamp to Trace.WriteLine()

In my C# .NET application I have an issue with the Trace.WriteLine()-method. I uses this method alot, and want to add a TimeStamp every time I use it. Instead of Trace.WriteLine(DateTime.Now + " Something wrong!"), is there a solution where the DateTime is on default? ...

How can I attach to and debug a running SQL Server stored procedure?

I am investigating an odd error from a SQL Server 2005 stored procedure which I cannot reproduce by calling it directly from Management Studio. Therefore I'd like to be able to: set a breakpoint in the stored procedure wait for the procedure to be called externally and the breakpoint hit see the values of the passed-in parameters step...

See trace() of Flash when running in browser

Whats an easy way to see the trace() of Flash/Flex movies when running in any browser? ...

How to print and use constants with gdb (through xcode) ?

I am debugging a Cocoa application using xcode-gdb. I am at a break point and I want view the value of some Cocoa constants (ie NSControlKeyMask) and to do some test with the values in the current stackframe. Specifically I am in - (void) keyDown:(NSEvent *) e , and I have done set $mf = (int)[e modifierFlags] on the gdb prompt. Now ...

How do I debug properly using Eclipse and Pydev?

I have got Pydev configured properly so it runs my app, however when I want to inspect/trace my code by setting up breakpoints the debugger does not kick in (can't trace). Does anyone got any idea what's going on here? ...

php code disappearance bug

<? class AccountModel { public $form = array ( 'email' => 'email', 'password' => array ( 'alphaNumeric' => array ( 'on' => 'create', 'required' => false, 'error' => 'Alphabets and numbers only' ), 'alphaNumeric' => array ( 'on' => 'update', 'required' => false, 'e...

Generating Symbols in release binaries with Visual Studio

Update: I posted a comment on John Robbins blog about the. He wrote a response here: http://www.wintellect.com/CS/blogs/jrobbins/archive/2009/06/19/do-pdb-files-affect-performance.aspx The project I am working on does not build symbols for its release binaries, and I would like to change this. Some info: Mostly C++ code base, some C...

How to generate gcc debug symbol outside the build target?

I know I can generate debug symbol using -g option. However the symbol is embeded in the target file. Could gcc generate debug symbol outside the result executable/library? Like .pdb file of windows VC++ compiler did. ...

Flex3 Improving basic trace

Hi, I read somewhere a utils to show the class + line nbr of the function who called a trace("foo") which is very handy once you start getting a lot of debug output. Any hints on where to find it ? it was open source, maybe shown at a flex event. trace("my debug"); > mydebug :34 bla.as3 .. Thanks, Greg ...

Compile Flex application without debug? Optimisation options for flex compiler?

I have created a simple test application with the following code var i : int; for (i=0; i<3000000; i++){ trace(i); } When I run the application, it's very slow to load, which means the "trace" is running. I check the flash player by right-clicking, the debugger option is not enable. So I wonder if there is an option to put in com...

How do you debug Java Applets ?

Currently, the only information I have is a one-line error message in the browser's status-bar. Do you know how I could get a stack-trace for example ? ...

Prevent Visual Studio from trying to load symbols for a particular DLL

I have Visual Studio 2005 set up to use Microsoft's symbol servers. I also have UltraMon installed, which injects a hook DLL into every process. Whenever I start debugging my MFC application, VS says: "Loading symbols for C:\Program Files\UltraMon\RTSUltraMonHookX32.dll..." for anything from the blink of an eye to several tens of se...