-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate if there's a way to improve the debugging experience. #44
Comments
Building My initial thoughts are messing with exceptions is trouble. Any python dev is going to expect the stack to give them what it always has. I also agree that as a QA tester, sometimes that stack isn't super helpful, contextually. Perhaps the info we need should be logged just prior to the exception? |
We need a good sample test that illustrates this issue. |
So i'm thinking of three cases here:
Currently, the stack trace that is shown and the place you end up with
If we could trace the code execution, we might be able to set the latest trace when the Actor does I'll see if i can make a quick sample test to show what i mean. |
I should preface, I can count the number of times I've used pdb directly on one hand. My knowledge on how to use it is limited. I almost exclusively use the debugger in pycharm. In the initial post, you talk about the stack that occurs when an exception is raised. I had assumed you were talking about the stderr exception stack output. I wasn't think about using pdb at that point. I'm guessing they do not look the same? |
I am talking about that, too, yes. I believe both of those "issues" (the verbose stacktrace and the inconvenient frame |
I agree that putting the breakpoint in the right place is hard. Actions inside of actions, etc will often lead to being down a stack of multiple Incorporating something into the Oddly enough I ran into similar issues when it came time to getting python logging to print the file and line numbers of |
Currently when exceptions are raised while an Actor is performing, the user is shown a stack trace right where the exception is raised. That's good! Sometimes.
Usually they want to be up at the
attempts_to
call that contains the Action that was being performed when they encountered the exception, so they can see what the Actor looked like. See if there's a way to excise certain transitional frames (like theActor.perform
andActor.attempts_to
), or start at a different frame than the most recent one.The text was updated successfully, but these errors were encountered: