Kain Nobel
Member
Good day everybody!
I found a workaround to this... I just simply redefined method in Kernel, and purposely made it throw an argument error which brought me to the line I was looking for.
There is an annoying p/print command that is being executed whenever I change maps in my project, which always prints 0, 5, 0, so I know its probably in something like Game_Map #setup, but... I've got that method aliased in quite a few scripts, so its kinda hard to find (and its probably even used somewhere else, I don't know).
I want to alias the print command, where it'll print whatever it prints, but also I want it to show the Script name (or index # in the editor) and the Line # of that script which the command is being used, or possibly even the method using the command, just so I can find it and delete it.
Can anybody help me?
I want to alias the print command, where it'll print whatever it prints, but also I want it to show the Script name (or index # in the editor) and the Line # of that script which the command is being used, or possibly even the method using the command, just so I can find it and delete it.
Can anybody help me?
I found a workaround to this... I just simply redefined method in Kernel, and purposely made it throw an argument error which brought me to the line I was looking for.
Code:
module Kernel
def p #<--Doesn't have an argument now :)
#...Nothing really needs to be defined
end
end