Skip to content
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

Make ic a function instead of an instance to improve distinction and intuitiveness #193

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

YunfangHou
Copy link

resolve #192

  1. A new function ic_aux, which is basically as same as the function __call__, but adding one more f_back after callFrame = inspect.currentframe().f_back, because ic_aux is invoked one more level of function.
  2. A new independent function ic, which initializes an instance of IceCreamDebugger and invokes the ic_aux function of the instance.
  3. Comment out __call__ function in IceCreamDebugger.

The effect is shown in the image below. The ic is now highlighted in the color of a function, with higher distinction and intuitiveness in user's IDE.

image

@YunfangHou YunfangHou changed the title Make ic a function instead of an instance to improve distinction Make ic a function instead of an instance to improve distinction and intuitiveness Oct 5, 2024
@YunfangHou
Copy link
Author

ping @gruns 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feather request] Make ic a function instead of an instance, to improve distinction and intuitiveness
1 participant