How can a Java program find out if it is running in debug mode?
The application should behave a bit different in regular 'full speed' mode than in 'debug mode' (when a debugger is attached, when running in debug mode). The application communicates over TCP with either another computer, another process, or within itself. My co-worker wa...
I have a lot of classes which interact with other classes through signal&slot mechanism, composition, inheratance etc.
I wonder, is there any tool which visualizes(such as:UML-like diagrams) dependencies between classes in source code especially for QT based codes?
Thanks.
...
I have a general timer with a 1.5 second interval (the render cycle).
I have a class with an NSDate* member/property (nonatomic, retain).
I set this date by calling [callingClass setDate:expirationDate];
Now... a couple of render cycles this NSDate is valid. However, around the 3rd cycle the value of this variable gets corrupted, it s...
I am analyzing an OutOfMemory issue in some applications in IBM WebSphere Application Server.
The problem comes from a singleton instance (a cache) loaded several times, that should be loaded only by one application and is loaded by several.
My problem is that I need to determine from the javacore and heapdump files: * The Classloader ...
Hey guys&dolls
Ok..
I hope i can get this across without sounding like an idiot.
Using Eclipse, when debugging is it possible to change the value of variables during runtime of a project for testing purposes.
For example, say I have a method that returns the number 5 but for testing purposes i want to output 10 instead. This isnt the...
I need Virtual PC (VPC) for testing my Visual Studio 2008/2010 applications, and I want to test and debug it using VPC running a clean install of WinXP (nothing else installed).
Back when I was running WinXP, I could launch a VPC session, do whatever I needed to (install my application, run it, debug scenarios, etc.), then exit without ...
Hi Team,
Very new in Android app.
Installed Eclipse, SDK, configured AVD but not able to debug my "Hello World" app in Eclipse running on Windows Vista Home Premium SP2.
When I am trying to debug - popup appears
The JRE Instance default XSLT processor does not support debugging would you like to debug using the default Xalan 2.7.1 pr...
I'm trying to debug a Chromium extension with console.log(), but I noticed that nothing is appearing in my JavaScript console. I assume the console object for the extension is not the same console that the document has access to, so how do I dumb a variable into JSON so I can see the result. I'm looking to get something like console.log(...
I'm new to GAE, and have not been able to figure out how to configure 'print' statements to the logging console rather than the browser. For example:
class Feed(webapp.RequestHandler):
def post(self):
feeditem = Feeditem()
feeditem.author = self.request.get('from')
feeditem.content = self.request.get('content...
I am developing an iOS application. I spend a lot of time in the simulator and it would be really helpful if I didn't have to switch back to Xcode to access the debuggers step in/out/over/continue controls. Is there a way to do this without Xcode being the application with focus?
(I know about the mini debugger, but that doesn't have st...
I can't find this anywhere, how do you check to see if slice is returning elements still in the list? Like $('.class').slice(n-th,n-th);
When n-th variables are increased throughout the index of the return class by slicing, how do you know when slice returns on an invalid index? Hope I explained that well.
Here is the example code of w...
Hello,
For the life of me, I can't seem to find the issue with my javascript. Firebug is spitting out the following error:
missing ) after argument list
[Break on this error] $.getJSON('http://local.yahooapis.co... results +'&output=json&callback=?',\n
Here is my code:
function getLocationJSON(fooBar) {
var appid = 'RvkxtGN.OtlDns...
I have trouble debugging ASP.NET MVC (1 & 2) in VS2008. Most often stepinto and stepover is just like hitting run. This also happens even if there is a breakpoint in the code on the next line. I've experienced this problem all along using MVC and others working in my team experience it as well.
Does anyone else have this problem? Is th...
I guess question says it all. I know one cannot use lambdas in immediate window, but sometimes I need to either filter a collection or display property of the items in the collection for each entry. Is there a way to do that?
...
I'm using maven / surefire / eclipse to write some code and later test / debug it.
Standard way to do it is by using maven.surefire.debug maven property. By default, when this property is enabled, maven starts listening on port 5005 and I can attach to the debugged process using remote debugger. When the test finishes remote debugger di...
Which is better to use, and why, on a large project:
#if DEBUG
public void SetPrivateValue(int value)
{ ... }
#endif
or
[System.Diagnostics.Conditional("DEBUG")]
public void SetPrivateValue(int value)
{ ... }
...
I'd been told, that using "if" statements is preferred , because of harder debugging of the code, when "else if" is used? Is there a grain of truth in this statement?
...
I'm developing a module in PHP for Prestashop and I'm having a tough time trying to debug code. Whenever something falls over it doesn't display errors, just a blank page - either on the front end where the module is hooked, or on the back end module page.
I'm trying to write in another class, or another function but it doesn't like it...
A module that I have written (test.py) in Python 2.6 can be imported and run perfectly well from with the Python IDLE with the commands:
import test
test.run_test_suite()
However if I use the command "python test.py" at the command line, it crashes apparently (according to traceback) on the command "import os".
As you can see from th...
For debugging environments, we have a conditional Debugger.Launch statement in the code to allow developers to debug into the startup code of the windows service. We just upgraded to .NET 4.0 today. Since the upgrade, if we exit out of the JIT window (i.e. we chose not to debug), the Windows Service is crashing (process is terminating). ...