Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

stack-trace

Unable to access StackTrace in custom C# Exception

September 3, 2022 by Magenaut

I recently tried setting up a logging system for my Web API. I decided that I wanted to create custom Exception classes that could be thrown and then logged by my GlobalExceptionHandler. However, I am having some issues accessing the StackTrace of my custom Exception objects.

Categories ASP.NET, Q&A Tags asp.net, c#, exception, stack-trace Leave a comment

Exception shows developer’s path instead of servers

September 1, 2022 by Magenaut

When an exception occurs with any ASP.NET project (possibly any .net app) the stack trace will show the path on the developer’s machine, even when in production.

Categories ASP.NET, Q&A Tags .net, asp.net, c#, exception, stack-trace Leave a comment

StackTrace/StackFrame don’t return expected info in a production environment

August 27, 2022 by Magenaut

I use the following method in my ASP.NET web application to receive the stack trace for an exception:

Categories ASP.NET, Q&A Tags asp.net, c#, debugging, stack-trace, visual-studio-debugging Leave a comment

StackTrace filename unknown

August 27, 2022 by Magenaut

Something strange is happening in my code where I’m using a StackTrace. It’s almost as if the debug info is not being loaded… but I’m running this on the DEBUG build.The .pdb files are definitelly in the bin directory and up to date. I’ve seriously ran out of ideeas :

Categories ASP.NET, Q&A Tags asp.net, c#, reflection, stack-trace Leave a comment

Showing the stack trace from a running Python application

August 20, 2022 by Magenaut

I have this Python application that gets stuck from time to time and I can’t find out where.

Categories Python, Q&A Tags debugging, python, stack-trace, traceback Leave a comment

When I catch an exception, how do I get the type, file, and line number?

August 18, 2022 by Magenaut

Catching an exception that would print like this:

Categories Python, Q&A Tags exception, python, stack-trace, traceback Leave a comment

Get __name__ of calling function’s module in Python

August 16, 2022 by Magenaut

Suppose myapp/foo.py contains:

Categories Python, Q&A Tags introspection, python, stack-trace Leave a comment

Print current call stack from a method in code

August 16, 2022 by Magenaut

In Python, how can I print the current call stack from within a method (for debugging purposes).

Categories Python, Q&A Tags debugging, python, stack-trace Leave a comment
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress