-
Notifications
You must be signed in to change notification settings - Fork 8
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
Support snoop #116
base: main
Are you sure you want to change the base?
Support snoop #116
Conversation
In futurecoder I use https://github.com/drudru/ansi_up to interpret the ANSI colour codes produced by snoop. For syntax highlighting you could pick a theme from http://help.farbox.com/pygments.html |
101ec74
to
23ca8c0
Compare
You really need a fixed width font there. Also I suggest setting the filename to |
The font css was being applied incorrectly, so that's fixed now. The filename is indeed an issue. The problem is to let all libraries find the source file and still displaying it in a nice fashion. I'm not entirely sure how to get that working consistently. |
Can you explain more? Which libraries are you talking about? What's wrong with |
I'm talking about a recent addition to python_runner, being def set_filename(self, filename):
self.filename = os.path.normcase(os.path.abspath(filename)) which we did as e.g. Pdb uses this to resolve filenames, whereas other libraries just use relative paths or something similar. So the filename stored is an absolute path, causing it to display like this in other areas too. |
Right, but I'm saying the actual absolute path can be |
Oh I see, thanks for this! |
f69afdf
to
469be12
Compare
6959851
to
e5afaa4
Compare
13e70d4
to
6334f25
Compare
67d81ff
to
6334f25
Compare
What happened to this? 😢 |
While this PR is functional, we decided to postpone providing debuggers in Papyros to ensure we offer functionality that users can and will use. A separate thesis might cover this in the futrue, at which point this PR might be bought back to life. |
Adds support for Backends to add more run modes (examples can be exec, snoop, birdseye, debug, etc)
Implements the snoop-mode for Python, showing the user a detailed trace of which parts their code visited.
Example output:
The current layout is quite basic, I'm not sure what style to apply. Maybe a little lighter in color to show it's not regular output (the indent already makes it quite clear)