Skip to content

Instantly share code, notes, and snippets.

@amphro
Created October 30, 2013 19:46
Show Gist options
  • Save amphro/7238988 to your computer and use it in GitHub Desktop.
Save amphro/7238988 to your computer and use it in GitHub Desktop.
A bookmarklet that opens the Apex Log body in a new tab when selecting a log from the Developer Console. Not formatted, as it is a bookmarklet.
var l=Ext.getCmp('traceGrid'); var s=l.selModel.selected; if (s && s.length===1) { var id=s.items[0].data.Id; SfdcDevConsole.ToolingAPI.sobject('ApexLog', {id:id, body:true, success:function(r){var w=window.open('', id);w.document.write(r.replace(/\n/g,'<br/>'));w.focus();}})}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment