We are going to obfuscate our project but don't want to lose the ability of remote debugging and hotswapping.
Is it possible? Which tools can handle this? I'd be happy with simple obfuscation - just renaming classes/methods/variables.
[Edited] We're using Intellij IDEA but wasn't able to find any plugin for this task.
...
I have a problem debugging Invoke() or BeginInvoke() in Visual Studio 2008.
For instance in the code below the debugger breaks on the Invoke() call. I would have liked it to break on Console.WriteLine(p.ToString()); because that is where an exception is thrown. In code as simple as this this is not that much of a problem but it can get ...
I am looking for a Linux IDE with support for STL debugging.
the problem is that with Eclipse CDT, if I inspect the vector after the push_back:
int main() {
vector<string> v;
v.push_back("blah");
return 0;
}
I get something hostile like
{<std::_Vector_base<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, st...
I hit a wall while debuging my C++ class. It's a graph of sorts, something like this:
class Graph {
class Node {
std::map<int, Node>::iterator _neighbors[4];
};
std::map<int, Node> _map;
};
Basically, each node keeps track of exactly 4 neighbors by storing iterators to them in the containing class' map.
The proble...
Xcode / objective c does not really print a useful stack trace. My app crashes somewhere, and the damn thing gives me only numbers like 45353453, 34524323, 6745345353, 457634524234. Not useful at all.
So I want to make a NSLog(); on the beginning of EVERY method I have in my entire app. But maybe there's a simpler way to just find out t...
I have a binary image (a dll) which I wish to view the assembly for. I also have the PDB associated with the dll.
Are there any tools out there that will allow me to open the binary image and navigate through the assembly, without needing to execute it?
...
I want to write a debug function or method that will help print useful information. When it is called, I need:
the memory address of the calling object (if called by an object)
the method signature of the caller (or the name of the method), or the name of the function
the class name that owns that method or function
Is it possible to...
Hi,
on a Linux machine, I am using ptrace with the PTRACE_SINGLESTEP parameter to count the number of machine instructions of a program. I followed this article: http://www.ncsu.edu/it/mirror/ldp/LDP/LGNET/81/sandeep.html.
However, the result seems odd to me. For a very simple program, over 95000 machine instructions are counted. The t...
I have a blank project that simply plays two video files. No matter what I try, the second video gets sized to the same as the first. Please tell me this isn't a Flash bug and that there's something I can do to accomplish this. Here's my document class:
package{
import flash.display.*;
import flash.media.*;
import flash.net...
OpenGL ES 1.1 likes to crash my iPhone program if anything goes slightly wrong.
Usually it happens somewhere inside glDrawArrays, with several glDestroyContext calls on stack.
Usually I'm bisecting the problem by inserting
{
GLint iErr = glGetError();
if (iErr != GL_NO_ERROR)
{
NSLog(@"GL error: %d (0x%x)", iErr, iErr);
}...
I want to print out some debug messages in my erb template when it is called in development mode, but not when it is called in production mode (i.e.)
<%= debug variable_name %>
However, this will be printed in any mode.
I found I can do
<% if logger.debug?
debug variable_name
end %>
which seems to work. Is this the proper...
Hi,
With "Just My Code" turned off and a source location/server, it's easy to step into functions that are not in your code. Is there a way to set a breakpoint on one of these, though? Basically I want to say "when this function is called from anywhere, break and show me the source". I tried the "set function breakpoint" and entering th...
I have a more complicated version of the following:
unsigned int foo ();
unsigned int bar ();
unsigned int myFunc () {
return foo()+bar();
}
In my case, myFunc is called from lots of places. In one of the contexts there is something going wrong. I know from debugging further down what the return value of this function is when thi...
I have an ASP MVC view where have the following statement
#if DEBUG
//section 1
//do stuff
#else
//section 2
//do other stuff
#endif
When in visual studio I choose the release configuration from the dropdown to do the build, the code still steps through section 1.
In the solution configuration properties all subprojects of th...
I haven't been able to get any more console output (to help with debugging) from Hibernate despite setting a few properties in the hibernate.cfg.xml file. For example, adding the line <property name="show_sql">true</property> did not, in fact, show SQL statements in the console.
I've also tried playing around with the contents of the lo...
I'd like to use gdb or Xcode's debugger to watch every message sent to an object in an Objective-C 2.0 program. I don't care about arguments and such, as I just need to see every message it receives (retain, release, autorelease, etc). I also don't want to profile my entire program.
Is there a means, in Xcode, to select an instance (p...
So I'm working on a little bit of jQuery for a site I'm working on and for some reason when I put single quotes inside double quotes Firefox, in it's eternal glory, changes them to double quotes thus breaking my code.
I even tried putting it in an external javascript file even though I'm just prototyping at this point. No good. Wouldn't...
I have a process that spawns a helper process. Sometimes I need to debug start-up failures in the second process.
On Windows, I would use Image File Execution Options, or ntsd -o. However, I have no idea how to do this with gdb on OS X.
...
Hello all, I am trying to debug my cute little application here and it won't let me :( When I click Debug, I get two errors, the first one is:
Error 1 The best overloaded method match for 'WindowsFormsApplication1.Form1.InitializeBrowserEvents(ExtendedWebBrowser)' has some invalid arguments
and the second:
Error 2 Argument '1': cannot...
i have class named Group
i tried to test configuration:
var cfg = new Configuration();
cfg.Configure();
cfg.AddAssembly(typeof (Group).Assembly);
new SchemaExport(cfg).Execute(true, true, false);
when i debug this, im getting following sql:
create table Group (
ID INT IDENTITY NOT NULL,
Name NVARCHAR(255) null,
...