debugging

Advanced System.Transactions debugging

孤人 提交于 2020-02-02 09:28:06
问题 Are there any tips, tricks or methods for obtaining profiling/logging/debug information on the runtime behaviour of System.Transactions.TransactionScope ? I have an application which is committing data to the database, even though I'm using System.Transactions.TransactionScope , where an exception is thrown and TransactionScope.Commit() is never called. I was wondering if there are events or details on other classes used by TransactionScope that I can query at runtime to establish whether my

Why would my ASP.NET project run on the development server when not among the startup projects?

我是研究僧i 提交于 2020-02-02 02:14:47
问题 I have a visual studio 2008 solution that includes an asp.net-hosted remoting project in c#. The solution also contains other c# projects and c++ projects . When debugging the interaction between my c# client and the asp.net server, the debugging is great. I can literally step into server calls and back out. However, there are times in which I need to focus my debugging on a standalone executable without the asp.net project . My trouble is that, after settings the startup project(s) to other

Bullet debug drawer with OpenGL

情到浓时终转凉″ 提交于 2020-02-01 08:27:09
问题 I have been fiddling around with bullet for a bit and I now want to draw debug. I have an opengl world with working bullet physics and everything. What I have tried is this: I have created a class GLDebugDrawer like this: #include "LinearMath/btIDebugDraw.h" class GLDebugDrawer : public btIDebugDraw { int m_debugMode; public: GLDebugDrawer(); virtual ~GLDebugDrawer(); virtual void drawLine(const btVector3& from, const btVector3& to, const btVector3& fromColor, const btVector3& toColor);

Java JVM Eclipse remote debug with a console enabled

跟風遠走 提交于 2020-02-01 01:40:42
问题 When I attach to a running JVM in Eclipse using socket in a JVM machine running on a diffferent host like production environment, is there a way to get the STDOUT/STDERROR output in console too, i.e to have console enabled too ? 回答1: Kind of... I recently set up an ant script to deploy updates to a remote server and then automatically restart it. The restart script was called using putty's plink utility from ant. The restart script stopped the server, then started it in remote debug mode so I

Drop into an Interpreter anytime in Python

怎甘沉沦 提交于 2020-01-31 12:39:01
问题 I know how to drop into an interpreter with pdb and IPython , but this requires me knowing beforehand exactly where I want to stop. However, I often run number crunching scripts that take minutes to hours, and I would like to know exactly what it's progress is. One solution is to simply put lots of logging statements everywhere, but then I either inundate myself with too much information or fail to log exactly what I want to know. Is there a way to initialize a listener loop that under some

Eclipse Android Debugger - Where in my code did I cause the exception?

百般思念 提交于 2020-01-31 06:46:36
问题 Admittedly, my question is basically the same as this one, but it seems to have been left unanswered: NullPointerException in handleStopActivity -- No reference to my code in stack trace Downloaded Eclipse Helios, Android Developer Tools Plugin, and the JDK all within the last week. I was messing around with an app on my device, ran it in Debug mode, and it unexpectedly terminated. I realized I had caused a NullPointerException and the problem itself was not an issue for very long. What is an

What exactly is the 'Saff Squeeze' method of finding a bug?

自作多情 提交于 2020-01-30 19:46:47
问题 I have read Kent Beck's original blog post on the Saff Squeeze method. I have also read this InfoQ post that elaborates a bit more on the topic but does not provide any examples. I know that it is essentially a way of homing in on a bug without relying on the debugger. However I find Kent's example to be not that clear. Can someone more enlightened educate me on how to use this approach with a clear, concrete example? It'll hopefully serve as a learning resource for anyone else researching

What exactly is the 'Saff Squeeze' method of finding a bug?

我与影子孤独终老i 提交于 2020-01-30 19:46:06
问题 I have read Kent Beck's original blog post on the Saff Squeeze method. I have also read this InfoQ post that elaborates a bit more on the topic but does not provide any examples. I know that it is essentially a way of homing in on a bug without relying on the debugger. However I find Kent's example to be not that clear. Can someone more enlightened educate me on how to use this approach with a clear, concrete example? It'll hopefully serve as a learning resource for anyone else researching

MinGW, build GUI application with console

戏子无情 提交于 2020-01-30 19:28:01
问题 I'm using MinGW to build my application on Windows. When compiling and linking, the option "-mwindows" is put in command line to have Win32 API functions. To be more specific: when calling GCC of MinGW without "-mwindows" like this: c:\>g++ -c main.cpp c:\>g++ -o main.exe main.o The 'main.exe' after the 2 command lines above will run with a console, and Win32 API functions won't be usable. When calling GCC of MinGW with "-mwindows" like this: c:\>g++ -c main.cpp c:\>g++ -o main.exe main.o

move up a frame, debug R environment

无人久伴 提交于 2020-01-30 16:03:11
问题 When debugging a function, I would like to move up to the parent frame and look at some variables there. How do I do this? Here is a sample: f <- function() { x <-1 g(x+1) } g <- function(z) { y = z+2 return(y) } I then debug both functions using debug("g") and debug("f") . When I end up in g at the Browser> , I would like to move back up to f to examine x. Thanks 回答1: In R terminology, you are wanting to investigate the parent frame of g() 's evaluation environment (i.e. the environment in