-
Notifications
You must be signed in to change notification settings - Fork 37
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
Implement Trace.to and Trace.toError() #1
Comments
@fflorent: Florent, I know you were already involved in this, perhaps you are interested in this issue...? Honza |
I was involved about the Sure, I'll do that. Florent |
Great, you might want to read instructions about how to install/run Firebug.next: Honza |
One small and related commit: Honza |
I am working on it. Florent |
That should work. I also changed some files to include Note for me (or any vimist who want to do the above changes for each file): here is the macro to automatically rename /Trace^MiFB^[GG?require(^Mo^Mconst Trace = FBTrace.to("DBG_...");^[ Florent |
Nice, I tested it and works for me, thanks!
We have been usually using (capitalized) file name in the past, but think we should automatize this by using
We can also introduce simplified syntax. What about:
TraceError is not currently attached into the current file and not
The result pref name can be e.g: Since the option names tend to be rather longer (module IDs are paths), we might also want to display the list of available options (in the Options tab) as one column sorted alphabetically. It should be a lot faster to find the right option then. Honza |
Then the option panel should allow to select a folder (that will be definitely practical). Also I propose this:
What do you think?
Then maybe rather Florent |
Yep, I like the idea!
All sounds great to me. Just one question, not sure what you mean by: Map the module id to some DBG_ option
Note that firebug-next become firebug 3 at some point and "firebug" is there twice already. extensions.firebug.fbtrace.chrome/chrome Honza |
Exactly. Thus if
Sounds good to me. Florent |
I see, ok Honza |
@honza what do you think of the two above commits?
If that's fine for you, I'll adapt the other files (I can automatize using shell scripts + vim macros), merge into master and I'll let you edit Florent |
I commented in the commit Btw. you need to use @janodvarko ;-) Honza |
Right. Above the commits with your suggestions (+ firebug/firebug@eb3e7e2). Florent |
Nice, works for me just fine! I think you can merge (both modified branches) and close this issue Related commits in the firebug/firebug repo: I created two follow ups as discussed above:
Honza |
Merged in af94c9b Florent |
We need support for conditional tracing in Firebug.next
Use case:
var TraceError = Trace.toError();
var Trace = Trace.to("DBG_MYOPTION");
Honza
The text was updated successfully, but these errors were encountered: