stack-trace

How can I rethrow an Inner Exception while maintaining the stack trace generated so far?

偶尔善良 提交于 2020-01-11 15:22:03
问题 Duplicate of: In C#, how can I rethrow InnerException without losing stack trace? I have some operations that I invoke asynchronously on a background thread. Sometimes, things go bad. When this happens, I tend to get a TargetInvocationException, which, while appropriate, is quite useless. What I really need is the TargetInvocationException's InnerException, like this: try { ReturnValue = myFunctionCall.Invoke(Target, Parameters); } catch (TargetInvocationException err) { throw err

Getting VB.NET line numbers in stack trace

早过忘川 提交于 2020-01-10 10:43:06
问题 I have a VB.NET 2010 Winforms application where I'd like to include line numbers in the stack trace. I've read the following question and answers: how to print out line number during application run in VB.net Which mentions "you always need to include the PDB file with your code, which contains debugging information that is used in situations like this". Under advanced compiler settings I've tried "Generate debug info" as "pdb-only" and "full" for my release build and confirmed that a fresh

Java: what information in error stack trace do we typically not wish to show users?

社会主义新天地 提交于 2020-01-09 11:06:29
问题 I'm new to java and I'm not that familiar with the formatting rules used by an error stack trace when it is thrown and subsequently displayed to an end-user of my web application. My experience with Oracle database is that the error stack contains internal information, such as schema and procedure names and line number(s), which, while useful for debugging, I would like to prevent the user from seeing. Here's an example: java.sql.SQLException : ORA-20011: Error description here ORA-07894: at

Java: what information in error stack trace do we typically not wish to show users?

萝らか妹 提交于 2020-01-09 11:06:05
问题 I'm new to java and I'm not that familiar with the formatting rules used by an error stack trace when it is thrown and subsequently displayed to an end-user of my web application. My experience with Oracle database is that the error stack contains internal information, such as schema and procedure names and line number(s), which, while useful for debugging, I would like to prevent the user from seeing. Here's an example: java.sql.SQLException : ORA-20011: Error description here ORA-07894: at

How to print stack trace of StackOverflowException

主宰稳场 提交于 2020-01-09 10:45:22
问题 I am developing a .Net 2.0 application in which a StackOverflowException occurs. Is there a way to print/log the stack trace before/during the application aborts? This is a long running server-side process which would be hard to execute under a debugger. I know that StackOverflowException can not be caught. 回答1: Use ADPlus (from Windows Debugging Tools) to force a dump on crash. E.g. adplus -hang -pn <process name> -o <dump file> 来源: https://stackoverflow.com/questions/2591406/how-to-print

How to print stack trace of StackOverflowException

孤人 提交于 2020-01-09 10:45:11
问题 I am developing a .Net 2.0 application in which a StackOverflowException occurs. Is there a way to print/log the stack trace before/during the application aborts? This is a long running server-side process which would be hard to execute under a debugger. I know that StackOverflowException can not be caught. 回答1: Use ADPlus (from Windows Debugging Tools) to force a dump on crash. E.g. adplus -hang -pn <process name> -o <dump file> 来源: https://stackoverflow.com/questions/2591406/how-to-print

Cocos2d, iOS and XCode: how can I debug/understand this stacktrace?

。_饼干妹妹 提交于 2020-01-07 09:26:28
问题 I am developing a Cocos2d 2.0 game and can't quiet get around on why my App is crashing. The console output is as following: 2013-02-08 10:52:08.298 AppName[994:15203] cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from [29] to [40]. 2013-02-08 10:52:08.299 AppName[994:15203] cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from [40] to [54]. 2013-02-08 10:52:08.300 AppName[994:15203] cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from [54] to [73]. (lldb)

How to make zf2 output errors with simple formatting?

巧了我就是萌 提交于 2020-01-07 02:21:33
问题 I am newbie with zf2 framework. For example, now I get this error: Fatal error: Uncaught exception 'Zend\ModuleManager\Exception\RuntimeException' with message 'Module (ZfcUserOverride) could not be initialized.' in F:\Server\domains\zf2-skeleton\vendor\zendframework\zendframework\library\Zend\ModuleManager\ModuleManager.php:189 Stack trace: #0 F:\Server\domains\zf2-skeleton\vendor\zendframework\zendframework\library\Zend\ModuleManager\ModuleManager.php(163): Zend\ModuleManager\ModuleManager-

How to make zf2 output errors with simple formatting?

早过忘川 提交于 2020-01-07 02:21:13
问题 I am newbie with zf2 framework. For example, now I get this error: Fatal error: Uncaught exception 'Zend\ModuleManager\Exception\RuntimeException' with message 'Module (ZfcUserOverride) could not be initialized.' in F:\Server\domains\zf2-skeleton\vendor\zendframework\zendframework\library\Zend\ModuleManager\ModuleManager.php:189 Stack trace: #0 F:\Server\domains\zf2-skeleton\vendor\zendframework\zendframework\library\Zend\ModuleManager\ModuleManager.php(163): Zend\ModuleManager\ModuleManager-

Display stack trace in Android Studio - it's disappeared

怎甘沉沦 提交于 2020-01-06 19:51:12
问题 Very dumb, very basic question, but this has been frustrating the hell out of me, so here goes. My stack trace has disappeared in Android Studio. All Logcat shows is crap like this: 8:34:36 PM Gradle build finished in 16 sec 8:41:30 PM Gradle build finished in 10 sec 8:43:05 PM Gradle build finished in 8 sec 8:43:07 PM Session 'app': running 8:45:18 PM Gradle build finished in 10 sec 8:45:20 PM Session 'app': running No stack trace, no nothing, and I know for sure that there are exceptions I