You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, it comes short when import or customization is required before hunter.trace.
fromhunterimporttrace, Q, DebuggerfrompdbimportPdbtrace(
Q(
# show code that contains "mumbo.jumbo" on the current linelambdaevent: event.locals.get("mumbo") =="jumbo",
# and it's not in Python's stdlibstdlib=False,
# and it contains "mumbo" on the current linesource__contains="mumbo",
action=Debugger(klass=Pdb)
)
)
With due consideration of safety, it should be allowed to eval a whole snippet of codes.
The text was updated successfully, but these errors were encountered:
Current trace client is a simple wrapper of
eval
:It works for simple or medium complex situations, such as:
hunter-trace -p 34313 stdlib=False
hunter-trace -p 34313 "hunter.Q(lambda event: event.locals.get(\"msg\") == \"ha\")"
However, it comes short when
import
or customization is required beforehunter.trace
.With due consideration of safety, it should be allowed to eval a whole snippet of codes.
The text was updated successfully, but these errors were encountered: