debugging

Debugging application built with mixed ASP.NET versions.

Hi, I am working on an application built using ASP.NET 1.1 but that invokes services built in ASP.NET 2.0. Attempts to debug my code by setting a breakpoint and attaching the w3wp.exe process fail because IIS is running under ASP.NET 2.0. If I select ASP.NET 1.1 as the version in IIS then debugging works, but the calls to the 2.0 se...

Why can't I stop a service in Android?

Intent helloservice = new Intent(this, HelloService.class); startService(helloservice); ... stopService(helloservice); Why won't this work? It just keeps running. Am I missing some Binds or something? By the way, this is my service: public class HelloService extends Service { private Timer timer = new Timer(); private long ...

Debugging managed app crash

I'm trying desparately to debug an application I'm trying to release. It was created on Win7 x64, and also runs fine on Win x32, but not on XP (Don't have Vista to test). I've created a dump file by setting the _NT_SYMBOL_PATH to the directory of the application in XP, then run the debugger with: adplus -crash -pn launchmenot.exe Thi...

Why can't I insert into MySQL?

+---------+---------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +---------+---------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | user_id | int(11) | NO | UNI | NULL | | | utm | point | NO | ...

Output line number in Rails log file

From the Rails Guide on debugging, I found that I can customize output to my log files using this simple method: logger.debug "Person attributes hash: #{@person.attributes.inspect}" I decided use this to track how a variable changes and goes through flow control. I would like to be able to see the line number of my code where logger#...

Eclipse step into debugging

I just put eclipse on my laptop, and when i use the Step Into debugging tool, it doesn't just take me to the next part of my code. An example is if i call .size(); on an array list, it will take me into the array list class and through all the code required for .size(); However on my desktop it will simply take me to my next piece of c...

How can I get a reference to an output stream that writes to the Visual Studio "output" window?

I have a third-party .NET library that enables output of some key diagnostic information to a TextWriter instance. I'd like to have this information dumped to the output window of Visual Studio 2008 while in debug mode and ignored if not in debug mode. Is there any way I can get a reference to an output stream that uses this output win...

adb cannot find my device for Android debugging. Why?

I installed Windows USB Android SDK driver for the Android Dev Phone 1 I enabled all the debugging modes and stuff on the phone. It even says...USB debugging connected. When I type adb devices , it shows me only my emulator , and not my phone. It doesn't seem to recognize my Android Phone as an adb device. Why is that? ...

Equivalent to toString() in Eclipse for GDB debugging

In Eclipse I can override the toString() method of an Object to pretty print it. This is especially useful because during a debug sessions as I can click on a variable and see the object in a human readable form. Is there any kind of equivalent for C++ during a gdb session. I'm also open to any IDEs that can emulate this behavior. ...

Debugging with iPhone How?

I have an iPhone & necessary certificates also, But don't know how to debug an application using xCode to iPhone. EDIT I have all these. I have mac mini & iPhone 3g. The question is - I don't know how to use all these certificates? I want to debug an application - having shake handling code. That I can't debug on simulator. So I just wa...

How To: debug Scala code when outside of an IDE

I'm experimenting with using jEdit as my main editor for writing Scala code. Along side jEdit I'm using Apache Buildr and DTerm. This all works well, except I'm really not sure how I would go about debugging Scala application outside of a large IDE? Are there recommended practices/tools for debugging outside of an IDE? ...

Korn Shell - Set "-x" (debug) flag globally?

Is there a way to set the debug mode(set -x) on a KornShell script globally? Currently it seems I have do something like the following: a(){ set -x #commands } b(){ set -x #more commands } set-x a #commands b I would really like to only have to call the set-x command in one place. Note: This is all in KSH88 on AIX. E...

debugging process hang in legacy 3rd party application

We have a legacy third-party telephony system built on something called "CT ADE" that periodically hangs for a few seconds (5 to 30) then resumes. During these hangs, users experience frustrating pauses in the phone menu. This has been going on for several weeks at least. This code was not written by me, so my knowledge of it is ver...

Bugs gone with firmware updates - issue or not?

Here is a programming issue you may have faced in your past. If a platform you are developing against has multiple firmware updates, and your software has a serious yet hard-to-reproduce issue in one of the older firmware, do you consider that as your bug? Should you work more on that or not? For instance, Nokia does not issue an offi...

Debugged Program Window Won't Close

Hi, I'm using VS 2008 on a 64-bit XP machine. I'm debugging a 32-bit C++ DLL via a console program. The DLL and EXE projects are contained in the same SLN so that I can modify the DLL as I test. What happens is that every once in a while I kill the program with Debug | Stop Debugging (Shift-F5). VS stops the program, but the console win...

Good resources for learning how to build a solid logging/debuging infrastructure for .Net MVC web sites/apps

Hello! I was wondering if someone could point me towards some good resources for learning how to build a solid logging/(remote) debugging infrastructure for .Net MVC web sites/apps to gather info for when things go bad. I know SO was built using .Net MVC and I wish I could pick Atwoods brain for even an hour because I bet he had some i...

What's the best way to fix memory leaks on the iPhone?

I'm trying to use XCode's Leaks utility to fix some memory leaks in my code. Is there a better and more understandable way to check for leaks with explanations that pinpoint the exact line and/or offer suggestions? Another question, I'm using AVAudioRecorder in my code in one of my view controllers. Should I load the recorder in viewDid...

Break when a variable is assigned some value

I want jdb (which I'm using via the Eclipse debugger) to break when a variable is assigned some value. I'm not interested in setting a breakpoint at some specific line but rather more generally. For example, break every time x == null. Is such a thing achievable? ...

Why isn't this working? It doesn't even call the onClick.

<script type="text/javascript"> $("a.filef").click(function(e){ alert('hi, it works'); return false; }); </script> <a class="filef" href="" rel="1">A</a> <a class="filef" href="" rel="2">V</a> ...

Seemingly useless debugging environment for Android

I've just started debugging my first three line long android app and I can't seem to use the debug tool like I want to. Here's my code: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); int a = 1 / 0; } Now I expect the debugger to halt the thread and show me the...